Advertisement
maxthelinkfan

Untitled

Sep 16th, 2012
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. package me.kyrp.MaxSpeedz;
  2.  
  3. import org.bukkit.ChatColor;
  4. import org.bukkit.Server;
  5. import org.bukkit.command.Command;
  6. import org.bukkit.command.CommandSender;
  7. import org.bukkit.entity.Player;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9.  
  10. public class Main extends JavaPlugin {
  11.  
  12. public void onDisable(){
  13. System.out.println("[MaxSpeedz] Disabled");
  14.  
  15. }
  16.  
  17. public void onEnable() {
  18. System.out.println("[MaxSpeedz] Enabled.");
  19. this.getServer().getPluginManager().registerEvents(new Events(), this); {
  20.  
  21. }
  22. }
  23.  
  24. public boolean onCommand(CommandSender sender, Command cmd, String commandText, String[] args){
  25. Player player = (Player)sender;
  26. Server server = player.getServer();
  27. {
  28. }
  29. if(cmd.getName().equalsIgnoreCase("bafk")){
  30. String playername = player.getName();
  31. }
  32. server.broadcastMessage(ChatColor.GOLD + player.getName() + " is now AFK "); {
  33. return false;
  34.  
  35. }
  36. }
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement