Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Added register-help configuration to disable registering WorldEdit's commands with hMod's help system.
Dieser Commit ist enthalten in:
Ursprung
7106783581
Commit
cd16ca3abb
@ -101,6 +101,10 @@ public class WorldEditListener extends PluginListener {
|
|||||||
* Indicates whether commands should be logged to the console.
|
* Indicates whether commands should be logged to the console.
|
||||||
*/
|
*/
|
||||||
private boolean logComands = false;
|
private boolean logComands = false;
|
||||||
|
/**
|
||||||
|
* True to register the commands with the help system.
|
||||||
|
*/
|
||||||
|
private boolean registerHelp = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct an instance of the plugin.
|
* Construct an instance of the plugin.
|
||||||
@ -1451,6 +1455,8 @@ public class WorldEditListener extends PluginListener {
|
|||||||
String type = properties.getString("shell-save-type", "").trim();
|
String type = properties.getString("shell-save-type", "").trim();
|
||||||
shellSaveType = type.equals("") ? null : type;
|
shellSaveType = type.equals("") ? null : type;
|
||||||
|
|
||||||
|
registerHelp = properties.getBoolean("register-help", true);
|
||||||
|
|
||||||
logComands = properties.getBoolean("log-commands", false);
|
logComands = properties.getBoolean("log-commands", false);
|
||||||
|
|
||||||
String logFile = properties.getString("log-file", "");
|
String logFile = properties.getString("log-file", "");
|
||||||
@ -1483,10 +1489,12 @@ public class WorldEditListener extends PluginListener {
|
|||||||
* Register commands with help.
|
* Register commands with help.
|
||||||
*/
|
*/
|
||||||
public void registerCommands() {
|
public void registerCommands() {
|
||||||
|
if (registerHelp) {
|
||||||
for (Map.Entry<String,String> entry : commands.entrySet()) {
|
for (Map.Entry<String,String> entry : commands.entrySet()) {
|
||||||
etc.getInstance().addCommand(entry.getKey(), entry.getValue());
|
etc.getInstance().addCommand(entry.getKey(), entry.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* De-register commands.
|
* De-register commands.
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren