GriefPreventionFlags - Vault
GriefPreventionFlags - Vault is an extension plugin that will hook Vault's economy system into GriefPreventionFlags. The project was created as an extended example of using the GriefPreventionFlags Developer API, as such the source code is freely available.
- Allows server operators to charge currency for setting claim flags.
- Allows server operators to charge currency for setting player flag messages.
- Requires Vault and GriefPreventionFlags 1.5+
Announcement
Due to lack of demand and a similar feature being added to Flags, this plugin has officially been discontinued. There will be no further updates of any kind, though the current version may continue to function for some time. If you enjoy the features of GriefPreventionFlags - Vault, please consider upgrading to Flags instead. This discontinuation has no implications as to the current development state of GriefPreventionFlags.
Commands
Command | Description | Alias |
gpfvault <action> | Plugin Maintenance Command (only supported action is "reload"). | gpfv |
setflagprice <flag> <price> | Sets the price of the specified flag. | sfp |
setmessageprice <flag> <price> | Sets the price of the message for the specified player flag. | smp |
getflagprice <flag> | Gets the price of the specified flag. | gfp |
getmessageprice <flag> | Gets the price of the message for the specified player flag. | gmp |
setflagrefund | Toggles whether or not the flag price will be refunded when removed. | sfr |
setmessagerefund | Toggles whether or not the message price will be refunded when removed. | smr |
previewmessage <flag> <message> | Allows the player to see what the message would look like without being charged for it. | pm |
Permissions
Permission | Description | Default |
gpfvault.admin | Grants access to the gpfvault command. | op |
gpfvault.set | Grants access to the setflagprice and setmessageprice commands. | op |
gpfvault.refund | Grants access to the setflagrefund and setmessagerefund commands. | op |
gpfvault.get | Grants access to the getflagprice and getmessageprice commands. | everyone |
gpfvault.preview | Grants access to the previewmessage command. | everyone |
Configuration
The BaseFlagValue setting tells the plugin which value is compared to the new setting to determine if the plugin should charge.
Setting | Description |
DEFAULT | The player will be charged for setting the value such that it alters vanilla Minecraft behavior. |
GLOBAL | The player will be charged for setting the value different from the defined global flag in GriefPreventionFlags. |
ALWAYS | The player will be charged regardless of the value set to the flag. |
Example:
BaseFlagValue: DEFAULT
Refund allows the player to gain back the cost of the flag if the value is set back to the DEFAULT or GLOBAL value. If BaseFlagValue is ALWAYS refunds will only be given if the flag is removed, and the refund amount will only be for one use of the /setflag command. WARNING: Players will always be refunded the current price, even if they bought it at a different price.
Example:
Refund: Flags: true Messages: false
Prices can be edited manually in config.yml. Once finished, use the /gpfvault reload command to load them. By default, all prices are set to zero. It is safe to remove flags from the list entirely if you wish, the plugin will assume zero for any flag not explicitly defined.
The plugin is designed to dynamically support flags and should not require an update when new flags are added to GriefPreventionFlags. Just add them to the config.yml (or use the set price commands) and it will work!
Example:
Price: Flag: NotifyEnter: '100' Message: NotifyEnter: '2500.5'