mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-21 07:46:55 +00:00
Patch locate overwrite
This commit is contained in:
1 parent
f5fed50e4d
commit
b6d8771792
1 file changed
+1
-2
@@ -25,8 +25,7 @@ public class CommandLocate extends MortarCommand implements Listener
|
||||
}
|
||||
if (event.getMessage().contains("/locate")) {
|
||||
event.setCancelled(true); // Cancel the vanilla command process
|
||||
event.getPlayer().sendMessage("/locate command overwritten in Iris worlds. Ran /ir std goto instead");
|
||||
String command = event.getMessage().replace("/locate", "/ir std goto");
|
||||
String command = event.getMessage().replace("/locate", "ir std goto");
|
||||
Bukkit.dispatchCommand(event.getPlayer(), command);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user