WorldGuard Integration #15


  • New
  • Enhancment
Open
Assigned to _ForgeUser8064701
  • _ForgeUser1738488 created this issue Oct 2, 2013

    Hi.

    First of all, great plugin, it is extremely helpful.
    Would you be willing to integrate WorldGuard protections?
    It should be pretty simple, something like this:

    ...
        // signLocation - the location of the sign to be edited
        // player - the player who issues the command
    
        Plugin plugin = getServer().getPluginManager().getPlugin("WorldGuard");
    
        if (plugin != null && plugin instanceof WorldGuardPlugin) {
            WorldGuardPlugin worldGuardPlugin = (WorldGuardPlugin) plugin;
            if (!worldGuardPlugin.canBuild(player, signLocation)) {
                // player is not allowed to edit the sign!
            }
        }
    ...
    

    Thanks,
    hellboyPS

  • _ForgeUser1738488 added the tags New Enhancment Oct 2, 2013
  • _ForgeUser2804591 posted a comment Dec 28, 2013

    Sorry for the delay.

    3.3.4 adds an option to fire Block Break/Place events, this should allow WorldGuard to catch the event and cancel it if the player doesn't have access to break/place blocks there.

  • _ForgeUser1738488 posted a comment Mar 12, 2014

    Great. Gonna give it a shot right now. Our community will love this :)


    Edited Mar 12, 2014

To post a comment, please login or register a new account.