Try using a CreatureSpawnEvent checking if the creature is a chicken and if so cast it to Chicken and use the setBreed(Boolean b) method to...
file.getTotalSpace() gets the space in long
You also need to set the EventPriority to HIGHEST for it to work properly.
I believe you are using an ObjectOutputStream and ObjectInputStream to read/write the file. Those can only be used for Object which implement the...
You're welcome, man :D Those annoying priorities used to bug me all the time until i read a post about how they work. Link here if you wanna read...
No, it isn't because of the deprecated methods, those still work. I tried to make respawning work on a test here but i also didn't manage. How...
Did you make sure to register the event in the main class or in the listener class? You register an event by using...
Try changing your Priority for that event to Lowest. And btw, when you check if the player is in the red team you try to respawn him in the...
I don't think it worked uploading the file with the post so if it didn't here's a link on mediafire to the plugin <Edit by Moderator: Redacted...
After you get the two coords you need to establish minimum and maximum values for each x y and z. double minX = loc1.getX() < loc2.getX() ?...
The NullPointerException happens if, while running a program/plugin, java finds a variable with a null (empty) value. Maybe you're trying to get...
Considering a plugin that gives you full gold when you use the command /pimpmeup public boolean onCommand(CommandSender sender, Command command,...
When you want to compare Classes that extend the Object class in java like the String class you should use the method .equals(Object obj)...
No no, you have to change private final GlassDropListener myGlassListener ; private final GlassDropPaneListener myPaneListener ; to private...
There's a null object at line 40 of the MinenionPlayerListener class, check it. If you don't know what's wrong paste the code here.
private final GlassDropListener myGlassListener = new GlassDropListener(this); private final GlassDropPaneListener myPaneListener = new...
I don't see any problem with saving or loading for a hashmap in that code. I use almost the same thing on one of my plugins and it works...
I recently created a plugin that records, shows current ip, lists all the ips one account logged in from, compares an ip to account that have...
How would i create a plugin that selects an area and makes it so that there are 2 different spawns in it and that when ppl die they keep all their...
Separate names with a comma.