SHOW:
|
|
- or go back to the newest paste.
1 | package me.adam.kittypl; | |
2 | ||
3 | import org.bukkit.command.Command; | |
4 | import org.bukkit.command.CommandSender; | |
5 | import org.bukkit.entity.Player; | |
6 | import org.bukkit.plugin.java.JavaPlugin; | |
7 | import org.bukkit.ChatColor; | |
8 | ||
9 | public class /* Use 'Main' */ main extends JavaPlugin { | |
10 | ||
11 | @Override | |
12 | public void onEnable() { | |
13 | getLogger().info("KittyPL Has been enabled!"); | |
14 | } | |
15 | ||
16 | @Override | |
17 | public void onDisable() { | |
18 | //getLogger().info("KittyPL Has been disabled!"); | |
19 | } | |
20 | ||
21 | @Override | |
22 | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { | |
23 | - | /* WHAT THE FUCK IS THIS LINE */return super.onCommand(sender, command, label, args);{ |
23 | + | /* WHAT THE FUCK IS THIS LINE return super.onCommand(sender, command, label, args);{ */ |
24 | - | if(/*command.getName() instead of label*/ label.equalsIgnoreCase("pl")) |
24 | + | if(/*command.getName() instead of label*/ label.equalsIgnoreCase("pl")) |
25 | - | if (sender instanceof Player) /* You'll need a { */ |
25 | + | if (sender instanceof Player) /* You'll need a { */ |
26 | - | sender.sendMessage(ChatColor.AQUA + "These are our custom plugins:"); |
26 | + | sender.sendMessage(ChatColor.AQUA + "These are our custom plugins:"); |
27 | - | return true; |
27 | + | return true; |
28 | - | } |
28 | + | } |
29 | - | /* Close it off with a } */ |
29 | + | return false; |
30 | } | |
31 | } |