WorldGuard

WorldGuard

8M Downloads

shop - Flag

LadyCailinBot opened this issue · 5 comments

commented

WORLDGUARD-2526 - Reported by Max.Wölk

Hey,
we're using ShowCaseStandalone-Plugin for Bukkit at the moment and would try to implement the WorldGuard API to create Region-Flags to allow/deny Users to create shops in specific regions.
Would it be possible to add a ENABLE_SHOP Flag to the default Flags so it can be accessed by other Plugins via API (comparable to the BUYABLE and PRICE Flag) ?

There would only two things to add to DefaultFlag.java:


public static final StateFlag ENABLE_SHOP = new StateFlag("allow-shop", false);

public static final Flag<?>[] flagsList = new Flag<?>[] {

       ..., ENABLE_SHOP,

    };
commented

Comment by wizjany

will not be done by us

commented

Comment by Max.Wölk

Are there any special reasons why this (or something similar) won't be done? It would be no big effort for you to implement it and a big help for every shop-plugin maker who want's to use WorldGuard!

commented

Comment by sk89q

IMO we could just add this simple flag. It's a pretty generic flag with a large number of uses.

Down the line, with WG next-version, people can just register the flags themselves if needed.

commented

Comment by wizjany

We don't directly hook into other plugins (such as economy or shops) so as far as worldguard itself is concerned, this flag is useless. We get lots of requests for adding meaningless flags, which is why we're planning on letting other plugins add their own flags (and even server owners) so that worldguard itself is not so cluttered with unused flags.

commented

Comment by Max.Wölk

Ah, ok. Good to know. I think this will be one of the best new features of WorldGuard :)
Thanks for your response.

Greetings,
Max Wölk