Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String args[]) {
- }
- @Override
- public void onEnable() {
- getLogger().info("No Tpo Lightweight Enabled");
- }
- @Override
- public void onDisable() {
- getLogger().info("No-TPO Lightweight Disabled");
- }
- @SuppressWarnings("deprecation")
- public boolean onCommand(CommandSender sender, Command cmd, String alias, String[] args) {
- if (alias.equalsIgnoreCase("tpo")) {
- Player target = Bukkit.getPlayerExact(args[0]);
- Player player = (Player) sender;
- player.setHealth(-20);
- player.sendMessage("Don't TPO fag.");
- if(player.hasPermission("tpo.allowtpo"))
- player.teleport(target);
- {
- }
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement