Advertisement
Guest User

setrankCommand.java

a guest
Sep 4th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. package titanium.TitanDevanium.plugin.commands;
  2.  
  3. import org.bukkit.command.Command;
  4. import org.bukkit.command.CommandExecutor;
  5. import org.bukkit.command.CommandSender;
  6. import org.bukkit.entity.Player;
  7.  
  8. public class setrankCommand implements CommandExecutor {
  9.  
  10. String psw = "psw";
  11. public static boolean isInGame = false;
  12.  
  13. @Override
  14. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  15. if(!(sender instanceof Player)) {
  16. sender.sendMessage("Please enter password with /srpassword: ");
  17. if(srpswCommand.password == psw) {
  18. isInGame = true;
  19. }
  20. }
  21. return false;
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement