mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-04-17 22:10:00 +00:00
command event can be cancelled for teleport command + rtp menu testing
This commit is contained in:
@@ -59,7 +59,8 @@ public class Commands {
|
||||
} else {
|
||||
RTP_CommandEvent event = new RTP_CommandEvent(sendi, new CmdTeleport());
|
||||
Bukkit.getServer().getPluginManager().callEvent(event);
|
||||
event.getCmd().execute(sendi, label, args);
|
||||
if (!event.isCancelled())
|
||||
event.getCmd().execute(sendi, label, args);
|
||||
}
|
||||
} else
|
||||
pl.getText().getNoPermission(sendi);
|
||||
|
||||
Reference in New Issue
Block a user