@q8minecraft Your uses are getting subtracted for each entity because you put the 'use--;' in the loop. Put that and the message you send to the...
If you're looking to achieve colored nicknames, you can just use: player.setDisplayName(ChatColor.translateAlternateColorCodes('&', args[i]));
Your best option would be to go with scoreboard teams to change the nametag, this is able to be done with a second scoreboard as well.
You can manipulate minecraft's scoreboard teams system to change the nametag of a player.
You can strike lightning at a players location on a PlayerDeathEvent. @EventHandler public void onDeath(PlayerDeathEvent e) { Player p =...
You shouldn't use potion effects when vanishing players, it will display particle effects from players, and the player can still be hit. However,...
Why spawn blocks around the player when you can just prevent the player from moving?
You can use a null check for the file and create a new file if the file is null. When saving a file you could try using a "try and catch"...
You can use a PlayerMoveEvent to check the block that the player is currently on. @EventHandler public void onMove(PlayerMoveEvent e) {...
Yes, there are multiple ways. You could check in the if the bow in the shooters hand has a certain display name or not, and if it does, then make...
@MinecraftMart You can clear the lore of the item, and set the damage in the lore with a custom lore, then read that line of lore when setting the...
@wooethan Here is an example. public void taskTimer(final Plugin plugin) { new BukkitRunnable() { for(Player online :...
Can you be more specific? What is your definition of a 'title'?
I am pretty sure the way most large networks get integers off websites involves reading the integer from their databse. However, I could be wrong,...
Depending on what you mean, there are several ways to set the damage. You could add the sharpness enchantment, but I am assuming you don't want to...
@Reynergodoy Just some advice when making ItemStacks for GUIs. I find the way you're making an ItemStack to be long and tedious when making a GUI...
@wooethan You would create a method, the name of your choice, and inside that method, you would create a BukkitRunnable, or a repeating task that...
You could use a try and catch statement when adding stuff/saving a config. I've done it in the past, and it works quite well for cleaner config...
I wouldn't use a HeldItem event for this. Try using a scheduler that runs every 'x' amount of ticks, and check if the player's health is a certain...
@thewalkingplay Ah. Well, I've done this in the past with some of my plugins. You could make a method called "openGUI" or whatever you want, and...
Separate names with a comma.