mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-06 04:46:40 +00:00
cfi packet listener
This commit is contained in:
@ -39,6 +39,7 @@ import com.boydti.fawe.util.StringMan;
|
||||
import com.boydti.fawe.util.TextureHolder;
|
||||
import com.boydti.fawe.util.TextureUtil;
|
||||
import com.boydti.fawe.wrappers.WorldWrapper;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.sk89q.jchronic.Chronic;
|
||||
import com.sk89q.jchronic.Options;
|
||||
import com.sk89q.jchronic.utils.Span;
|
||||
@ -90,7 +91,9 @@ import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.time.ZoneId;
|
||||
import java.util.Calendar;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.IdentityHashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
@ -167,6 +170,7 @@ public class LocalSession implements TextureHolder {
|
||||
private boolean useServerCUI = false; // Save this to not annoy players.
|
||||
private ItemType wandItem;
|
||||
private ItemType navWandItem;
|
||||
private Map<String, String> macros = new HashMap<>();
|
||||
|
||||
/**
|
||||
* Construct the object.
|
||||
@ -296,6 +300,19 @@ public class LocalSession implements TextureHolder {
|
||||
}
|
||||
}
|
||||
|
||||
public Map<String, String> getMacros() {
|
||||
return Collections.unmodifiableMap(this.macros);
|
||||
}
|
||||
|
||||
public void setMacro(String key, String value) {
|
||||
this.macros.put(key, value);
|
||||
setDirty();
|
||||
}
|
||||
|
||||
public String getMacro(String key) {
|
||||
return this.macros.get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get whether this session is "dirty" and has changes that needs to
|
||||
* be committed.
|
||||
|
Reference in New Issue
Block a user