What is getMinStudents() returning? Does it have a default value or is it null? If this happens when there are no players or not enough players...
@Zombie_Striker I wasn't suggesting he creates a new method. When a class extends JavaPlugin you can use getPlugin() on it to get the instance...
Remove the semi-colon after the last if statement shown in that image.
How can I create a vector from one location to another?
I would recommend that you use the .getPlugin(Main.class) method to create a new instance of the plugin/main class. For example: Plugin plugin =...
Alright, I can't tell if the walking backwards problem is fixed because it is just acting as a sort of speed-bump, throwing the player up (if they...
I created an event to make sure it only happens every 6 ticks, but it still sends them over the line if they walk backwards into it. This is what...
It didn't work, it just makes them walk slower across the redstone line rather than throwing them back. Here is the bit of code I'm using for...
Hello, I am currently making a plugin which has a feature where a player cannot walk over a line of redstone. Currently, if they walk into a line...
If you're trying to get a collection of players, what do you think the type will be?
How about... factions? http://dev.bukkit.org/bukkit-plugins/factions/ If you want the older version of factions that's compatible with 1.9,...
I am actually already about 50% done a town of salem plugin. I'm not sure what my plans are on how it'll be used, privately or publicly but if I...
Wow, thanks! That was such a simple fix yet I failed to notice it. Thank you!
Hello, I am having trouble saving player files with a method that I created. Each player has a file created for them on their first join, but...
I think that was probably meant as an example and not to be taken literally.
Separate names with a comma.