So I currently have this code: public static void getRandomPlayers(String map) { int size = getPlayersAlive(map).size(); int newsize = size...
@Zombie_Striker Alright thanks, marking as solved.
@Zombie_Striker Sorry for the late response, is this what you meant? public static String getAvailableMap() { Random random = new...
@Zombie_Striker Thanks for the method, but I was looking to get the name of the first available map thats "false", does the method I provided do...
@Zombie_Striker Soooo like this? public static String getAvailableMap() { Random random = new Random(); ArrayList<String> maps =...
I have a current HashMap named "maps", like so: public HashMap<String, Boolean> maps = new HashMap<>(); and I'm adding a couple of "test maps"...
@Zombie_Striker Thank you very much. It worked.
@Zombie_Striker Sorry, I'm just really confused about all this. Is this right? private void ChestRegen() {...
@Zombie_Striker Sorry I'm a bit confused/stuck on what to do with "and loop up to the list's length." and "mod it by the list's length." Can you...
Bump ^^
@xRosss Try fiddling around with PlayerItemConsumeEvent Check if it's a golden apple then just add either a regen potion effect, or increase the...
So I am making a custom chest generation that spawns in chests, the chests coords are found in the StringList in the config. I am using this: This...
Yeah I got it, I figured it out. I used: int firstarrowslot = p.getInventory().first(Material.ARROW); ItemStack firstarrowitem...
Right, but it returns an int? What do I do with the int? This is first time I have heard of .first(); Sorry.
So I'm making a plugin where you right-click a arrow with the name "Lightning" and when you shoot it, it strikes lightning in the spot, which...
Separate names with a comma.