I am new @ HashMaps. So i dont understand the code :/ sorry.
HashMap<String,Integer> MapVotes = new HashMap<String,Integer>(); String mapvoted = /** Highest voted map from HashMap **/
Try: Damageable p2 = p; double health = p2.getHealth(); p.sendMessage("Your Health: " + health); Hope i could help
Random rnd = new Random(); int n = 1; n = rnd.nextInt(7); Inventory inv =...
How can i check if the Player is looking towards North/South/West/East ? Dont write something like: Code your stuff on your own! | or | We are...
I thought i can make a /tpa Plugin with a boolean, but the boolean is Public and would be for everyone, and i know that there is an easier way to...
I want to make a Bigger Enderchest Plugin with a PlayerInteractEvent and a InventoryCloseEvent How can i make this please help :/ i am sitting...
But then i am testing if a Player is looking to north 100%ly. And i want if a player looks from (Yaw:-45 to +45) Then something should happen...
How can i Check if a Player looks towards North or East or South or West... ? if(p.getLocation().getDirection() == Direction.North) or...
I want to Check if a Player has more than 4 Sticks in the Inventory, but failed: if(p.getInventory().contains(new ItemStack(Material.STICK), 1)...
How can i make thiess command executable from the console
I wrote a GunGame plugin where you can earn Tokens. And you should earn Tokens when you voted. And i use a CommandListener and the Listener is...
How can i Update the scoreboard ? :) and by the way Thank you very much.
public static void setExampleScoreboard(Player p) { int Streak = getConfig().getInt("Spieler." + p.getName() + ".Streak"); Scoreboard pb =...
What do i have to write in the PlayerJoin Listener that the player can see The scoreboard with the Integers from the config? public static void...
Separate names with a comma.