(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.
You should return true; public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {...
Syd I know it isn't but in my opinion it's one of the fastest.
You should do something like this. ItemStack Colored = new ItemStack(YourItem), 1, (short)[Numbered Color] // 1 = Dark Blue, 2 = Dark Green, etc.
It should also be mentioned that turqmelon, that's coding one of the biggest server's out there learned from youtube tutorials. Dragonphase
Go on youtube and search 'sgtcaze custom currency tutorial' and that should help you out. :)
I've recently been having a problem commands, and I also have been getting back into coding. Whenever I try to execute a command it just returns...
Separate names with a comma.