geforkt von Mirrors/FastAsyncWorldEdit
Change /reload WorldEdit to /reloadwe.
Dieser Commit ist enthalten in:
Ursprung
b925855d77
Commit
9f25c1906d
@ -60,10 +60,8 @@ public class WorldEditPlayerListener extends PlayerListener {
|
||||
public void onPlayerCommand(PlayerChatEvent event) {
|
||||
String[] split = event.getMessage().split(" ");
|
||||
|
||||
if (split[0].equalsIgnoreCase("/reload")
|
||||
&& plugin.hasPermission(event.getPlayer(), "/reload")
|
||||
&& split.length > 1) {
|
||||
if (split[1].equalsIgnoreCase("WorldEdit")) {
|
||||
if (split[0].equalsIgnoreCase("/reloadwe")
|
||||
&& plugin.hasPermission(event.getPlayer(), "/reloadwe")) {
|
||||
try {
|
||||
plugin.loadConfiguration();
|
||||
event.getPlayer().sendMessage("WorldEdit configuration reloaded.");
|
||||
@ -75,7 +73,6 @@ public class WorldEditPlayerListener extends PlayerListener {
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (plugin.controller.handleCommand(wrapPlayer(event.getPlayer()), split)) {
|
||||
event.setCancelled(true);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren