public void onEnable() { getConfig().options().copyDefaults(true); getConfig().addDefault("NewsCommand", true); //or add a...
Which way?? Create a class, put in private variables with your values, create getter and setter. Then store the Objects in a list or a hashmap....
Add more debug-messages (for every if-statement). Then you can see where it fails.
PlazmaStorm It's maybe not helpful for you, but I think the best way is school education, or learn from a person, which has a knowledge of Java....
Is it really so difficult to increase a variable in config?? I think your problem is the knowledge of java. Maybe it doesn't increas because you...
Necrodoom sry my english is really not the best, do you mean that I have shown that my code works? But didn't you say that my code wont work
@EventHandler public void onPlayerMove(PlayerMoveEvent event) { Location from = event.getFrom(); Location to =...
while the moveevent is executed, the player didn't move jet, and after all moveevents where executed bukkit set the player to the location...
stormneo7 Nope, after the event, the player will automatically be teleported to the getTo() location, try it. Trust me I always use this code to...
Necrodoom I set the players location after moving to the location from the player before the he moved, but the location I set the player will have...
Necrodoom scroll left I think my code works, I can't find a mistake EDIT by Moderator: merged posts, please use the edit button instead of...
stormneo7 what's wrong with this code?
FisheyLP canceling the move event will move the player instantly and this bugs. I is better to teleport, or set the "to-location".
fireblast709 with these answers in his case I can also ask google not the bukkit forums. So I can also find out how to split a string or how to...
fireblast709 some users here never heard a word about java and wont be able to create this code, maybe they they learn with some good examples, if...
mythbusterma you can also create an else branch to show a message. And what is bad on spoon-feeding, I would like it if I have a question.
stormneo7 supersonicsauce because of this I've posted my code. It is safe to use. I prevents or catches all exceptions. (if the string line is...
This is a plugin request. There is another forum for this. http://forums.bukkit.org/forums/plugin-requests.13/
String[] array = line.split(":"); if (array.length == 2) { Integer id = integerFromString(array[0]);...
Separate names with a comma.