Skip to content

Example usage of the Events provided by MCMMO Credits.

License

Notifications You must be signed in to change notification settings

CultivateGames/MCMMOCreditsExample

Repository files navigation

MCMMOCreditsExample

This is a Minecraft plugin to showcase example API usage for MCMMOCredits.

API usage is current as of v0.4.2

In this example, players who have the "mcmmocredits.example.break" permission, have their credit balance modified when they break a block in the configured list.

# Breakable blocks
blocks:
  - STONE
  - SAND
  - DIRT
  - GRASS_BLOCK
# Amount of credits to modify balance
amount: 1
# How to modify the balance of a user when they break the block.
# Options: ADD, SET, TAKE, REDEEM
operation: REDEEM
# Skill for REDEEM type.
skill: HERBALISM
# If the example plugin should use the CreditTransactionEvent, or the API built in methods.
use-event: true

Releases

No releases published

Packages

No packages published