Thank you.
I am having a problem with my arguments for the command. This is my current code: @Override public boolean onCommand(CommandSender...
So you mean just add in a line that says args[1].equalsIgnoreCase(Bukkit.getPlayer()); When I do this it says that String in type Bukkit is not...
So I am adding in a mute command to my plugin and I tried looking at other plugins of similar styles and came up with this: public...
Oh silly me. Your third possibility was the case. I'll remember to double-check that next time something like this happens. Thanks for your...
Well this is what i've tried and so far it hasn't worked. String[] msg = event.getMessage().split(" "); List<String> cens =...
As I said, I think I figured out how to split it already. I just don't know how to assign it to an array and check through each string. And...
Ehh, I've looked through some searches and couldn't find much on this. I'm pretty much a newbie when it comes to coding. A jump-start would be...
How would I go about doing this? code-wise
So currently my code goes as follows: List<String> censoredWords = this.plugin.getConfig().getStringList("censored-words"); if...
X_X thanks for the help :)
http://pastie.org/4280183
onCommand() is in my main class and i returned false.
For some reason even after defining the command, when typed in-game it says unknown command. Code: http://pastie.org/4280100 plugin.yml:...
So now if my code is as follows: http://pastie.org/4279592 Would i just use something like this?...
How would I go about saving the config fred? Sorry a bit new to this.
I followed this tutorial: http://forums.bukkit.org/threads/tutorial-intermediate-configuration-yaml-make-configs.45383/ However when I startup my...
Thanks this fixed the issue. And btw, I'm new to java so you gotta start somewhere :)
Hey so i have this code to define censored words in a config file: List<String> censoredWords =...
Hey i'm having trouble getting the plugin to recognize whether or not a player has a specific tool in his/her hand. I want it to only work if...
Separate names with a comma.