mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 17:27:38 +00:00
Change /reload WorldEdit to /reloadwe.
This commit is contained in:
parent
b925855d77
commit
9f25c1906d
@ -60,10 +60,8 @@ public class WorldEditPlayerListener extends PlayerListener {
|
|||||||
public void onPlayerCommand(PlayerChatEvent event) {
|
public void onPlayerCommand(PlayerChatEvent event) {
|
||||||
String[] split = event.getMessage().split(" ");
|
String[] split = event.getMessage().split(" ");
|
||||||
|
|
||||||
if (split[0].equalsIgnoreCase("/reload")
|
if (split[0].equalsIgnoreCase("/reloadwe")
|
||||||
&& plugin.hasPermission(event.getPlayer(), "/reload")
|
&& plugin.hasPermission(event.getPlayer(), "/reloadwe")) {
|
||||||
&& split.length > 1) {
|
|
||||||
if (split[1].equalsIgnoreCase("WorldEdit")) {
|
|
||||||
try {
|
try {
|
||||||
plugin.loadConfiguration();
|
plugin.loadConfiguration();
|
||||||
event.getPlayer().sendMessage("WorldEdit configuration reloaded.");
|
event.getPlayer().sendMessage("WorldEdit configuration reloaded.");
|
||||||
@ -75,7 +73,6 @@ public class WorldEditPlayerListener extends PlayerListener {
|
|||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (plugin.controller.handleCommand(wrapPlayer(event.getPlayer()), split)) {
|
if (plugin.controller.handleCommand(wrapPlayer(event.getPlayer()), split)) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user