Skip to content

Instantly share code, notes, and snippets.

Created May 30, 2016 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e1e6448b414e8ff2b5432978e9a5eebe to your computer and use it in GitHub Desktop.
Save anonymous/e1e6448b414e8ff2b5432978e9a5eebe to your computer and use it in GitHub Desktop.
# GoldenAppleControl by Terrobility
# Made with loads of love (and maybe a bit of salt)! <3
#
# x=x=x=x=x=x=x=x=x
# | CONFIGURATION |
# x=x=x=x=x=x=x=x=x
# Please don't change the config version.
config-version: 8
hooks:
# Allows access to {goldenapplecooldown} and {enchantedgoldenapplecooldown} in plugins like ActionBar, FeatherBoard, ConditionPerms etc.
# https://www.spigotmc.org/resources/mvdwplaceholderapi.11182/
mvdw-placeholderapi: true
plugin-messages:
prefix: "&7[&eGolden&6Apple&fControl&7] "
no-permission: "&cYou don't have permission."
no-active-cooldowns: "&cYou don't have any active cooldowns."
# Shows remaining time when a player has "goldenapplecontrol.use" permission node and does "/gapple".
remaining-time:
- "&5\u2588\u2588\u2588\u2588&e\u2588\u2588&5\u2588\u2588"
- "&5\u2588\u2588\u2588\u2588&e\u2588&5\u2588\u2588\u2588 &6Golden apple&7:"
- "&5\u2588\u2588&6\u2588\u2588\u2588\u2588&5\u2588\u2588 &c%GOLDENAPPLE%"
- "&5\u2588&6\u2588\u2588&f\u2588&6\u2588\u2588\u2588&5\u2588"
- "&5\u2588&6\u2588&f\u2588&6\u2588\u2588\u2588\u2588&5\u2588"
- "&5\u2588&6\u2588\u2588\u2588\u2588\u2588\u2588&5\u2588 &eEnchanted golden apple&7:"
- "&5\u2588&6\u2588\u2588\u2588\u2588\u2588\u2588&5\u2588 &c%ENCHANTEDGOLDENAPPLE%"
- "&5\u2588\u2588&6\u2588\u2588\u2588\u2588&5\u2588\u2588"
items:
whatever-you-want:
material: GOLDEN_APPLE
data: 0
permission: "goldenapplecontrol.randomperm"
cooldown:
enabled: true
duration: 30
use-formatted-time: true
use-expired-message: true
consume-message:
- "&7You can't eat another &6golden apple&7 for &c%TIME%&7."
- "&2Purchase a rank at &astore.examplecraft.com &2to bypass cooldowns!"
cooldown-message:
- "&7Wait &c%TIME%&7 before eating another &6golden apple&7!"
expired-message:
- "&7You may now eat another &6golden apple&7."
consumption-control:
enabled: true
# The food level is measured in half-shanks in the hunger bar. Whole numbers please.
food-level: 4
saturation: 9.6
# TYPE:DURATION(TICKS):AMPLIFIER(LEVEL-1)
# A list of types can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html
# e.g. REGENERATION:20:2 would give the player regeneration for 1 second (20 ticks). It would be level 3 because the amplifier = level minus one.
effects:
- ABSORPTION:2400:0
- REGENERATION:100:1
make-sure-its-not-already-used:
material: GOLDEN_APPLE
data: 1
permission: "idont.reallycare.anymore"
cooldown:
enabled: true
duration: 30
use-formatted-time: true
use-expired-message: true
consume-message:
- "&7You can't eat another &6golden apple&7 for &c%TIME%&7."
- "&2Purchase a rank at &astore.examplecraft.com &2to bypass cooldowns!"
cooldown-message:
- "&7Wait &c%TIME%&7 before eating another &6golden apple&7!"
expired-message:
- "&7You may now eat another &6golden apple&7."
consumption-control:
enabled: true
food-level: 4
saturation: 9.6
effects:
- ABSORPTION:2400:0
- REGENERATION:600:4
- DAMAGE_RESISTANCE:6000:0
- FIRE_RESISTANCE:6000:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment