GoldenAppleControl 2.0.5

Need flexibility over golden apple behaviour? Look no further.

  1. Terrobility
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    Source Code:
    https://github.com/Terrobility/GoldenAppleControl
    ABANDONED - The plugin needs a lot of work put into it. It's too complex for its own good which means a higher risk of bugs. I recommend using another plugin.
    Source code can be obtained by decompiling. Do NOT use the GitHub code - it is currently broken.
    Follow the license: you can make adaptations and share it, just remember to give appropriate credit, link the license and keep it non-commercial (don't sell it).

    Thank you all for the overwhelming support! I wish I still enjoyed Minecraft enough to continue developing updates.

    [​IMG]
    [​IMG] [​IMG] [​IMG]
    Need a proper gapple cooldown plugin? Look no further. GoldenAppleControl has everything you would ever need when it comes to modifying the behaviour of golden apples.

    Any item support
    Maybe you don't want to just give your regular
    and enchanted gapples a cooldown. You
    can control any consumable item!

    Add cooldowns
    Are your players becoming "gapple munchers"?
    GoldenAppleControl allows for easy control over
    golden apple cooldowns for both types of gapple!

    Change effects when consumed
    Ever felt that Regeneration 5 was a bit OP? Maybe
    you want to give Nausea instead. Now you can with
    GoldenAppleControl's consumption control!

    Perm-based cooldowns
    Want to give your donators a permission node
    so that their cooldown is reduced? Now it's
    possible! You have full control in the config!

    Placeholder support
    You can use placeholders in both Clip's and
    Maxim's PlaceholderAPI enabled plugins!​

    Fully customisable
    Whether its messages or durations,
    GoldenAppleControl gives YOU full control!

    Command support
    You're not restricted to changing simple
    messages; try using the /gapple command!​

    Screenshots:
    Needs updating.

    Permissions and commands:
    Code (YAML):
    commands:
        gapple
    :
            aliases
    : [goldenapplecontrol, gac, goldenapple, gapplecooldown, gcd]
            description
    : "Shows your remaining golden apple cooldown."
    permissions
    :
        goldenapplecontrol.use
    :
            description
    : "Allows you to use '/gapple' to show the remaining cooldown duration."
            default
    : op
        goldenapplecontrol.bypass
    :
            description
    : "Allows you to bypass any cooldown."
            default
    : op

    Configuration:
    Code (Text):
    # 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: 9

    ignore-cooldowns-in-these-worlds:
      - "test"

    plugin-messages:
        no-permission: "&7[&eGolden&6Apple&fControl&7] &cYou don't have permission."
        # Shows remaining time when a player has "goldenapplecontrol.use" permission node and does "/gapple".
        # You can use any placeholders you've registered from below, as long as you have PlaceholderAPI.
        remaining-time:
            - "&c&l&oNOTE: These placeholders won't be replaced unless you have PlaceholderAPI!"
            - "&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%goldenapplecontrol_gapple%"
            - "&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%goldenapplecontrol_enchantedgapple%"
            - "&5\u2588\u2588&6\u2588\u2588\u2588\u2588&5\u2588\u2588"
        inactive-cooldown: "&4Inactive"

    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."
            placeholder:
                enabled: true
                # In this case it would be {goldenapplecontrol_gapple} with Maxim or %goldenapplecontrol_gapple% with Clip.
                register-this: "gapple"
            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 &eenchanted golden 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 &eenchanted golden apple&7!"
                expired-message:
                - "&7You may now eat another &eenchanted golden apple&7."
            placeholder:
                enabled: true
                register-this: "enchantedgapple"
            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

        why-not-lol:
            material: COOKED_BEEF
            data: 0
            consumption-control:
                enabled: true
                food-level: 8
                saturation: 12.8
                effects:
                    - SPEED:2400:1
                    - JUMP:800:2

    Maven:
    REPO OFFLINE - Do not use

    Code (HTML5):
    <repository>
        <id>terrocidepvp-repo</id>
        <url>http://repo.terrocidepvp.net/artifactory/jenkins/</url>
    </repository>

    <dependency>
        <groupId>net.terrocidepvp</groupId>
        <artifactId>GoldenAppleControl</artifactId>
        <version>2.0.4</version>
    </dependency>
    Hook into GoldenAppleControl.getInstance().getItemManager() in order to access all items from the configuration and their respective information. Bear in mind Item#getPlaceholder(), Item#getPermissionNode(), Item#getCoolDown() and Item#getConsumptionControl() can return null. Adding items should be fairly easy by adding a new Item object to ItemManager#getItems().

    Please DON'T use the Reviews section for bug reports. That's why we have private messaging and the discussion section. I will not hesitate to report you to Spigot staff.

    GoldenAppleControl © 2016.
    When you're workin' the block game, things like these are very easy.
    Aoro and Mr_robbit like this.

Recent Reviews

  1. c0leman
    c0leman
    4/5,
    Version: 2.0.5
    works well on my faction server. suggesting an option to remove the cooldown in a certain world,
  2. Hash
    Hash
    5/5,
    Version: 2.0.5
    Nice plugin, but very odd default config. Maybe that is because I'm solely looking to get delays on gapples :)
  3. TheBigDude5
    TheBigDude5
    5/5,
    Version: 2.0.5
    I love the plugin idea keep it up, But the problem is where do I get the MVdW placeholders?
  4. UnrealFight
    UnrealFight
    4/5,
    Version: 2.0.5
    Nice plugin, but we can't add cooldown to some items in 1.9.4 like Notch Golden Apples, Enderpearls...
    1. Terrobility
      Author's Response
      Notch golden apples are in the config but the chap below you said it's not working properly. No need to fret - I'll have a look into it! And I'll also add ender pearl support too :)
  5. nedjii
    nedjii
    1/5,
    Version: 2.0.5
    Hello, this is not working for enchanced golden apple but it works for eveything. Maybe data items aren't really rupported ?
    1. Terrobility
      Author's Response
      I'll have a look into it. Sorry for the delay, I've been away from MC for over a year and I've only gotten back this month. Sit tight - I'll definitely test it out!
  6. regitraz
    regitraz
    3/5,
    Version: 2.0.5
    Doesn't work on KCauldron build for forge 1614 1.7.10 :/
    There is any issue for fix it or somethings?
  7. drood
    drood
    5/5,
    Version: 2.0.5
    Works perfect just as intended! Awesome plugin would recommend to anyone who is looking for a Food cooldown plugin!
  8. dani02
    dani02
    5/5,
    Version: 2.0.4
    AMAZING plugin, I really like it and will use it for my server
    5 Start from me bro and keep update it!
  9. Pengarty
    Pengarty
    5/5,
    Version: v1.8
    Amazing plugin! Does exactly as it says. Very easy to use and can be customized to your heart's content. 10/10 plugin!
    1. Terrobility
      Author's Response
      It's even more customisable this update :P
  10. luckyrose
    luckyrose
    5/5,
    Version: v1.7
    Great plugin! Does exactly what it should and it even let's you customize the messages! It's nothing more to say about it really.
    1. Terrobility
      Author's Response
      Thank you <3