Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-09 13:00:05 +01:00
Added WECUI handshake option
Dieser Commit ist enthalten in:
Ursprung
d81090c5d9
Commit
2ed92dafad
@ -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;
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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));
|
||||
|
@ -61,4 +61,5 @@ wand-item: 271
|
||||
shell-save-type:
|
||||
no-double-slash: false
|
||||
no-op-permissions: false
|
||||
debug: false
|
||||
debug: false
|
||||
enable-wecui-handshake: true
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren