Thanks i totally did not notice that. I saw your for method and i was like damn that was easy but forgot i could get the key out of the config as...
Hello, Everything works! but i cant find out how to get the key of the map... TreeMap<Integer, String> topvoters = new TreeMap<Integer,...
Thanks but is there a way do like a for loop to extract all of the information out of the "playervotes.{username}" i cant seem to find any? I know...
Hello, i am trying to improve my plugin called "RewardVoting" and want to make a list of the top voters. But i just cant figure it out to get my...
Sounds like a really good idea though ;$ Only the player who broke the block can pick the item(s) up :) I am going to experiment with that idea...
Does this give the player the right drop? Making that is a bit too difficult i think ;$ Im not that good yet. EDIT by Moderator: merged posts,...
Hello, I am making a new plugin. Idea: When mining it will add the block into your inventory and no drops on the ground. So i coded this so...
MCForger I have the integers in the config so i have to make a list or map of the integers etc? And then see which is largest?
DoppelRR It shows like [Vote Top] 1. Cherwin1: 3 2. person2: 1 3. null I just added the }else if(votes < first){...
DoppelRR I found this on the internet int first = 0; String firstname = null; int second =...
Hello again, I am improving my plugin and trying to add Top Voters ( A list of 5 players with the most votes ) But i just cant do it! I tried...
Nevermind i fixed it. Thanks for your help.
for(String item : config.getStringList("Rewards")){ String[] breakdown = item.split(":"); int itemId =...
Parse is not a method? explain it please.
Hello, I want the config to be like this (Example): rewards: - 264:3 //Gives the player 3 diamonds. So the user of the plugin can make...
Thank you so much :) me and a friend of mine could not find the error ;)
I dont see where i missed a quote?!
Hello, Im busy with making a final build for my plugin But everytime i reload my test server it shows up an error. [22:01:22 ERROR]: Cannot...
Oh didnt think about that lol im so dumb :/ haha Thanks for your help! i appreciate it alot! _______ Cherwin1
Wizehh pure1101 Thank you guys for the good help! but one more thing :( i cant put "return true;" under the sendMessage then it will only...
Separate names with a comma.