Skip to content

Reward Types

goflishMC edited this page Oct 22, 2024 · 2 revisions

OpCommands

  • One or multiple commands executed by the player with op permissions.
  • You can use placeholders like %player% to insert the player's name.

Example (one command):

RewardType: opcommand
Reward:
- fly

Example (multiple commands):

RewardType: opcommand
Reward:
- fly
- give 4 64

Nothing

  • Use RewardType: nothing for decoration or similar purposes where players receive nothing.

Example:

RewardType: nothing

Enchantment

  • Adds an enchantment to the item in the player's main hand.
  • Use the format: Reward: <enchantment name/id>#<level>.

Example:

RewardType: ENCHANTMENT
Reward: 'enchantment:DURABILITY#3'

Money

  • Gives the player money (requires the Vault plugin).
  • Use %reward% to display the actual amount of money received.

Example:

RewardType: money
Reward: 500

Points

  • Gives the player points. Supported plugins include:
    • PlayerPoints
    • CommandPoints
    • Enjin
    • PointsAPI
    • TokenEnchant
    • Jobs
    • MySQL-Tokens
    • VotingPlugin
    • Kingdoms
  • Use %reward% to display the actual amount of points received.

Example:

RewardType: points
Reward: 750

Permissions

  • Grants the player one or more permissions (requires Vault).

Example (one permission):

RewardType: permission
Reward:
- Permission.Node

Example (multiple permissions):

RewardType: permission
Reward:
- Permission.Node1
- Permission.Node2

Shop

  • Opens another shop GUI.

Example:

RewardType: shop
Reward: menu

ShopPage

  • Sends the player to another page of the current shop.

Example:

RewardType: page
Reward: next

BungeeCordServer

  • Sends the player to a named BungeeCord server.

Example:

RewardType: bungeecordserver
Reward: survival

BungeeCordCommands

  • Executes commands via the BungeeCord console.

Example:

RewardType: bungeecordcommand
Reward:
- 'alert This alert was triggered by %player%.'

LilyPadServer

  • Sends a player to a LilyPad server using playercommand.

Example:

RewardType: playercommand
Reward: server survival

Exp

  • Increases the player's experience level.

Example:

RewardType: exp
Reward: 10

ItemAll

  • Fills the player's inventory with the specified item. Requires a numeric PriceType. Set the reward to the item you want with an amount of one. The given price is the price per unit.

Example:

RewardType: ITEMALL
Reward:
- type:LOG
- amount:1
PriceType: MONEY
Price: 10

In this example, players can fill their inventory with logs and pay 10 money for each.

Close

  • Closes the shop/inventory GUI.

Example:

RewardType: close