Advertisement
Guest User

newPlugin help

a guest
Jan 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. package com.spigot.developerrebel;
  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 newPlugin extends JavaPlugin {
  9.  
  10.  
  11. @Override
  12. public void onEnable() {
  13.     this.getLogger().info("enabled succesfully!");
  14.  
  15.  
  16. }
  17. @Override
  18. public void onDisable() {
  19.     this.getLogger().info("disabled succesfully");
  20. }
  21.  
  22. @Override
  23. public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
  24.     if (cmd.getname().equalsIgnoreCase("spawn")) {
  25.         if (sender instanceof Player)
  26.  
  27.             Player player = (Player) sender;
  28.             if ( player.hasPermission("sp.spawn"));
  29.     }
  30.  
  31.  
  32.     return true;
  33.  
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement