mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-10-22 16:17:45 +00:00
command event can be cancelled for teleport command + rtp menu testing
This commit is contained in:
1 parent
bdece2c552
commit
bd07536c0c
5 files changed
+114
-6
No files matched your search
@@ -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