The Fancy Whale if the above solution doesnt work, try use this method: player.updateInventory(); It's deprecated, but it still works and there is...
So, I was wondering if someone could help me getting individual signs to work. I know that it is possible by using packets, but there is a method...
I don't think the ProjectileHitEvent works with items, but i could be wrong
jonny1011 Put this on the top of the Main class: public List<String> materials = new ArrayList<String>(); Then onEnable: materials =...
Ad237 It should not, it runs on a different thread other then the pre login event. @EventHandler(priority = EventPriority.HIGHEST) public void...
Ad237 1. I work with mysql, i work with it for 2 years (i dont think thats how its written, im not english) 2. The event fires, the thing is that...
So, i am making a semi-large minigame network, and i need to store player data on a mysql database (i store there coins, wins, ranks, etc). I run...
Try this, it even has color integration. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if...
@Garris0n Nop, that is what confuses me :| Bump. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Garris0n No, sorry for not make it clear, i only want to put the first player in the dog team and the rest in the cat. That works, the only thing...
Nop, doesn't work, here is my new code: public void setupTeams() { List<String> players = new ArrayList<String>(); for(Player...
Remove the setCancelled, its cancelling the event before it checks
I'm creating a new Cat&Dog minigame, and i'm trying to use ScoreBoard Teams, but i does'nt seam to work the setfriendlyfire. Can anyone help me?...
public class MutListener implements Listener { Kits plugin; public MutListener(Kits plugin) { this.plugin = plugin; }...
I'm creating a chat manager type of function inside my permission plugin, and it works. But, when I use the character "%" it does not format. My...
DoctorDark Thank dude!
Bump.
I can cancel the breaking / rotating of an item from an item frame, but the player can still remove the item form it... Can someone help me?
Yes, the "myPlugin" variable is a JavaPlugin variable, in other words, your main class Goblom this resource was very helpfull :D
if ((!this.plugin.getConfig().getBoolean("legbreak.enabled")) && ((event.getCause() == EntityDamageEvent.DamageCause.FALL) && (p.getFallDistance()...
Separate names with a comma.