Close this thread please.

Discussion in 'Plugin Development' started by adde, Aug 26, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    adde

    Close this thread.
     
  2. Offline

    zachoooo

  3. Offline

    adde

    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
    1.  
    2. logger.info("WorldGuard found, flag in config is set to " + getConfig().getString("WorldGuard.Flag") + "!");
    3.  

    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 :p

    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.
     
  4. Offline

    zachoooo

    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.
     
  5. Offline

    adde

    Hmm, then how can "ChestShop" make it?
     
  6. Offline

    FurmigaHumana

  7. Offline

    adde

    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.
     
    Last edited by a moderator: May 28, 2016
  8. Offline

    FurmigaHumana

  9. Offline

    08jne01

    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.
     
  10. Offline

    adde

    There are no solution :p
     
Thread Status:
Not open for further replies.

Share This Page