GriefPreventionFlags - Vault

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

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

CommandDescriptionAlias
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
setflagrefundToggles whether or not the flag price will be refunded when removed.sfr
setmessagerefundToggles 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

PermissionDescriptionDefault
gpfvault.adminGrants access to the gpfvault command.op
gpfvault.setGrants access to the setflagprice and setmessageprice commands.op
gpfvault.refundGrants access to the setflagrefund and setmessagerefund commands.op
gpfvault.getGrants access to the getflagprice and getmessageprice commands.everyone
gpfvault.previewGrants 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.

SettingDescription
DEFAULTThe player will be charged for setting the value such that it alters vanilla Minecraft behavior.
GLOBALThe player will be charged for setting the value different from the defined global flag in GriefPreventionFlags.
ALWAYSThe 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'

Source Code

https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif

About This Project

Categories

Members

Recent Files