mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Patch locate overwrite
This commit is contained in:
parent
f5fed50e4d
commit
b6d8771792
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user