mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +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
|
@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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user