CraftCreeper6 Nope, didn't work. However, I figured it out. It was the logic in the for loop. If the second set of coords is lower than the first...
Bump. I'm really confused and it would be appreciated if someone could help.
I'm currently trying to make a plugin similar to PlotMe. I want to be able to set the top layer of a plot by using a command. The command works...
xTigerRebornx mythbusterma BillyGalbreath MCaeolus Gater12 SmooshCakez Well thanks for helping, I think I might just insert a statement to stop...
SmooshCakez Basically the plugin I'm making is a personal utility plugin that other custom plugins I'm making would rely on as an API to make...
BillyGalbreath But this is Java, a programming language. There MUST be a way to do this.
BillyGalbreath What I'm saying is, if there is an update for a plugin, I want them to easily reload the plugin to install the new update without...
techboy291 Well, I could do that, but I want the player to be able to reload the plugin itself too.
I am making a plugin that will be able to unload, load, and reload any specific plugin without the use of /reload. Everything works fine, until...
I was helping somebody else with this earlier
player.chat("Hello world!");
The Fancy Whale The HashMap javadoc. You don't really need to dedicate an entire class to it if you don't want to. Either way, your class needs to...
The Fancy Whale Instead of declaring the hashmap inside the method, put it at the top of the class like this instead: public HashMap<String,...
The Fancy Whale Simply move the hashmap outside of the method so that it's used by the entire class (make sure to clear the hashmap when you're...
Tate413 Actually, "ask" would be the label (Considering you do String label as one of your params for onCommand) and anything after that would be...
The Fancy Whale No problem :) If you want the top 5, just remove the key from the hashmap and look again for the next highest, and keep repeating...
The Fancy Whale For the first error, looks like I derped again and forgot to put .getKeys(false) (I edited that in just now) For the second error,...
NathanWolf Just read the docs, and realized what a mistake I made :P But not only would you use giveExp(int) for giving exp, I also found a...
The Fancy Whale This just adds everything to a hashmap so you can use it. To get the highest value, loop through the values and get the highest...
The Fancy Whale Hmm, all I could say is that it's probably a problem with the surrounding code. It worked fine for me as you see in this picture:...
Separate names with a comma.