signs

Last Updated with Plugin Version 1.5

What are Signs used for in DonationPoints?

Signs are used to give players packages that are defined in the configuration file. When a player spends their points, they are subtracted from the account of the player and the commands listed under the packages are ran. They also check the player's balance before processing to make sure they have enough points to perform the transaction.

Creating a Sign

The signs in DonationPoints only require two lines of information, this allows you to use the other lines to further explain the package.

  • The very first line should contain: "[SignMessage]"
    • The player creating the sign must have the permission node to create the DonationPoints sign. The message that goes in between the brackets may be changed in the config.
  • The second line should contain the package name, case sensitive. This should not have any quotes / brackets around it. Examples (for the defaults):
    • God
    • Kick
  • The third line does not require any information, I recommend you put the point value here. This way player's know what they are buying. What you put here is totally up to you. When purchasing a package, the plugin checks the config file for the price, NOT the sign.
  • The fourth line does not require any information. You could explain the package a bit more here.

Upon creating the sign, if the player has permission, they will get a message confirming the sign was created correctly. If they do not have permission, the sign text will be deleted and they will be told they do not have permission.

Example

Example In the above example, the package VIP2 is being sold for 1000 Points. The fourth line says 'Permanent' simply because that is how my server manages Premiums.


Comments

Posts Quoted:
Reply
Clear All Quotes