Fixed info command not executing

oops
This commit is contained in:
Omer Oreg 2021-07-07 10:43:42 +03:00
parent aca80fc2ef
commit ce1f1b4e01
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class RandomTeleportCommand implements CommandExecutor {
//TODO: teleporter and searcher statistics
} else if ("--info ".equalsIgnoreCase(args[0]) && sender.hasPermission("randomteleport.info")) {
plugin.sendMessage(sender, "info",plugin.getDescription().getVersion());
return true;
} else if (sender instanceof Player) {
runPreset(args[0].toLowerCase(), sender, (Player) sender, ((Player) sender).getLocation());
return true;