You could make a custom event then call it every time your plugin teleports a player. Then create an event handler to make it so they couldn't leave.
Fine Yoshi pie The plugin will be updated by the end of the week.
timtower, Fine Yoshi pie What's the need to remake it? I could just update it to the latest version if need be
Tyzun This: event.getCursor().getType() != Material.SADDLE | event.getCursor().getType() != Material.IRON_BARDING |...
mike546378 @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true) public void onPlayerInteract(PlayerInteractEvent...
You wouldn't even need the getConfigurationSection("") bit. It works fine just as: Set<String> items = plugin.getConfig().getKeys(false);
Why would ever need to store player objects? vidhu
Jhtzb You never initiated cfile so in that instance cfile = null since you never set it to anything before. In fact, you only initiate your...
Jhtzb You didn't actually do what I recommended: public FileConfig fileConfig; public void onEnable() {...
dakoslug How exactly did you stop the from re-entering beforehand?
Jhtzb Post your updated main class?
Jhtzb Does it give you the same error?
Jhtzb That's exactly what's happening. Your FileConfig class never has the plugin variable set. It's pretty clear why it's not working when you...
deery50 I understand that's the snippet, but it says the NPE is occuring on line 83, so without knowing which line is line 83, we can't really...
deery50 Which line is this: com.runetooncraft.plugins.Playermobs.Config.getlocation(Config.java:83)
ibWill Did you update your code in-between getting the error and showing us the code? If so you may just need to recompile and try running it...
Could we see the error that you're getting? deery50
ibWill It'd really help if we could see both the code and the error itself.
You could create a separate class for a custom player object that includes that stuff. public class CustomPlayer { String name; int...
I've been a server admin for about a year and a half. At our largest we were averaging right around 120 people a night. Aside from the obvious of...
Separate names with a comma.