mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Patch /locate override, reverting cosmetic changes that caused issues.
This commit is contained in:
parent
a4a8d78b1f
commit
53fdcce361
@ -17,9 +17,8 @@ public class CommandLocate extends MortarCommand implements Listener
|
||||
@EventHandler
|
||||
public void onPlayerCommandPreprocess(final PlayerCommandPreprocessEvent event) {
|
||||
if (event.getMessage().contains("locate") && IrisWorlds.isIrisWorld(event.getPlayer().getWorld())){
|
||||
MortarSender s = (MortarSender) event.getPlayer();
|
||||
s.sendMessage("/locate command blocked in Iris worlds. Please use '/ir goto' instead.");
|
||||
event.setCancelled(true);
|
||||
event.getPlayer().sendMessage("/locate command blocked in Iris worlds. Please use '/ir goto' instead.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user