mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 14:21:33 +00:00
Patch /locate override, reverting cosmetic changes that caused issues.
This commit is contained in:
@@ -17,9 +17,8 @@ public class CommandLocate extends MortarCommand implements Listener
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPlayerCommandPreprocess(final PlayerCommandPreprocessEvent event) {
|
public void onPlayerCommandPreprocess(final PlayerCommandPreprocessEvent event) {
|
||||||
if (event.getMessage().contains("locate") && IrisWorlds.isIrisWorld(event.getPlayer().getWorld())){
|
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.setCancelled(true);
|
||||||
|
event.getPlayer().sendMessage("/locate command blocked in Iris worlds. Please use '/ir goto' instead.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user