(In my Core Class) public static HashMap<Player, Player> message = new HashMap<Player, Player>(); package com.karadise.commands; import...
I made a /message and /reply command today, however I encountered an error. "Commands are of wrong type" Stack Trace: [17:21:21 INFO]: Debug...
Where are you getting your Player?
DJSkepter Well, get the player.
@ ToPoEdits You should cast Player player = e.getPlayer(); then check for permissions. I don't know where you got player's from, but the...
By the way, if you op player's they will have all those permissions. Then your plugin will malfunction.
Awesomedanguy The command name need's to be a string, so you can't do if(cmd.getName() == Hi){ ElitePie101 That has to do with your...
Why don't you just make the item a global variable, and then put it in the inventory? For Example: // Put this at the top of the class that...
You should create a runnable that subtracts one from the int time, and then it should update with the message.
You should use, if(cmd.getName().equalsIgnoreCase(YourCommandHere)) rather then the commandLabel so aliases work.
Separate names with a comma.