3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 02:20:07 +01:00

Added WECUI handshake option

Dieser Commit ist enthalten in:
Jim Nordbø 2012-04-07 12:15:42 +02:00 committet von zml2008
Ursprung d81090c5d9
Commit 2ed92dafad
5 geänderte Dateien mit 9 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -78,6 +78,7 @@ public abstract class LocalConfiguration {
};
public boolean profile = false;
public boolean enableWECUI = true;
public Set<Integer> disallowedBlocks = new HashSet<Integer>();
public int defaultChangeLimit = -1;
public int maxChangeLimit = -1;

Datei anzeigen

@ -137,13 +137,15 @@ public class BukkitPlayer extends LocalPlayer {
if (plugin.hasPluginChannelCUI(getName())) {
player.sendPluginMessage(plugin, WorldEditPlugin.CUI_PLUGIN_CHANNEL, send.getBytes(CUIChannelListener.UTF_8_CHARSET));
} else {
player.sendRawMessage("\u00A75\u00A76\u00A74\u00A75" + send);
if (plugin.getLocalConfiguration().enableWECUI) {
player.sendRawMessage("\u00A75\u00A76\u00A74\u00A75" + send);
}
}
}
@Override
public void dispatchCUIHandshake() {
if (!plugin.hasPluginChannelCUI(getName())) {
if (!plugin.hasPluginChannelCUI(getName()) && plugin.getLocalConfiguration().enableWECUI) {
player.sendRawMessage("\u00A75\u00A76\u00A74\u00A75");
player.sendRawMessage("\u00A74\u00A75\u00A73\u00A74");
}

Datei anzeigen

@ -77,6 +77,7 @@ public class PropertiesConfiguration extends LocalConfiguration {
}
profile = getBool("profile", profile);
enableWECUI = getBool("enable-wecui-handshake", enableWECUI);
disallowedBlocks = getIntSet("disallowed-blocks", defaultDisallowedBlocks);
defaultChangeLimit = getInt("default-max-changed-blocks", defaultChangeLimit);
maxChangeLimit = getInt("max-changed-blocks", maxChangeLimit);

Datei anzeigen

@ -59,6 +59,7 @@ public class YAMLConfiguration extends LocalConfiguration {
showFirstUseVersion = false;
profile = config.getBoolean("debug", profile);
enableWECUI = config.getBoolean("enable-wecui-handshake", enableWECUI);
wandItem = config.getInt("wand-item", wandItem);
defaultChangeLimit = Math.max(-1, config.getInt(
"limits.max-blocks-changed.default", defaultChangeLimit));

Datei anzeigen

@ -62,3 +62,4 @@ shell-save-type:
no-double-slash: false
no-op-permissions: false
debug: false
enable-wecui-handshake: true