Advertisement
Guest User

Untitled

a guest
Sep 15th, 2013
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. package me.Stark.Freeze;
  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.  
  8. public class Freeze extends JavaPlugin {
  9.  
  10. public boolean onCommand(CommandSender sender, Command cmd,
  11. String commandLabel, final String[] args) {
  12. if(commandLabel.equalsIgnoreCase("Freeze")){
  13. Player player = (Player) sender;
  14. player.sendMessage("§eThe chat is not frozen!");
  15. }
  16. return false;
  17. }
  18. public void onEnable(){
  19. getLogger().info("Freeze has successfully been loaded!");
  20. }
  21.  
  22. public void onDisable(){
  23. getLogger().info("A problem occurred and Freeze was disabled.");
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement