Sueta
SH

ShatteredDonations

1.0.0

A global-event based, EULA-compliant donation plugin.

·Plugin


ShatteredDonations is a plugin that responds to donations by triggering a global event. This can take the form of a command, spawning entities in a radius around the player, giving potion effects, and more. This includes a weight-based system so that some rewards can be more common or rare than others.

ShatteredDonations also features an API for other plugins to register reward types and hooks into Bukkit's event system. For more information look on the GitHub and at the JavaDocs .

All messages support PlaceholderAPI.

config.yml
# Should all players get the same reward?   
sameReward   :  true 
 # Set to false to use chat messages instead.   
titles   :  true 
 # A keyless list of rewards. Type, weight, and name are required on all rewards.   
rewards   : 
      # The type of reward. Defaults are 'command,' 'stat,' 'mob,' and 'effect.'   
  - type   :  command 
     # The weight of the reward. The number out of the total weight that this reward will be selected.   
    weight   :  1 
     # The display name for this reward.   
    name   :   "&aWood"  
     # The command to be run. Parses placeholders as well as %username% for the player's username.   
    command   :  give  %username% minecraft:log 64   
  - type   :  stat  
    weight   :  1  
    name   :   "&cHunger"  
     # The stat to be adjusted. 'HUNGER' and 'HEALTH' are available.   
    stat   :  HUNGER 
     # The amount the stat should be adjusted by.   
    value   :  -5  
  - type   :  stat  
    weight   :  1  
    stat   :  HUNGER  
    value   :  20 
     # Defaults to relative. Absolute sets the value to this, instead of adding the value to the current value.   
    operation   :  ABSOLUTE  
    name   :   "&aFeeding"   
  - type   :  stat  
    weight   :  1  
    stat   :  HEALTH  
    value   :  20  
    name   :   "&aHealing"   
  - type   :  mob  
    mob   :  ZOMBIE  
    weight   :  1  
    radius   :  10  
    amount   :  5  
    name   :   "&cZombies"   
  - type   :  effect  
    weight   :  1  
    effect   :  POISON  
    power   :  1 
     # Duration in seconds.   
    duration   :  30.0  
    name   :   "&cPoison"

Similar projects

Plugin →