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)
Separate names with a comma.