Thanks, but I already tried, I don't get how I should make what the flag does and not how I make the config right, I think I got it right: Code:java logger.info("WorldGuard found, flag in config is set to " + getConfig().getString("WorldGuard.Flag") + "!"); when WorldGuard was found. One question more too, how do I make so the class "WorldGuardHook" is in onEnable? I never done anything like with implenting another plugin So my questions is: 1. How do I make flags to WorldGuard and how to set what they do. 2. How do I implement "WorldGuardHook" into onEnable() method.
To answer number two: if (getServer().getPluginManager().getPlugin("WorldGuard") != null) { log.info("Hooked into worldguard or whatever"); } 1. the worldguard API doesnt support custom flags. What you're going to need to do is check the events yourself and use the worldguard API to check if they're in a worldguard region.
I don't wanna copy their stuff, but yes I did. Am I allowed too? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
ChestShop is under GNU General Public License version 3, maybe a more experienced guy can answer you better.
Rather than closing the thread just put solved at the top and if anyone else comes across the same problem they can find a solution.