killCounter [Owner & Kills in item lore] Now with Placeholder API support! 3.1.0

Customizable lore with owner and kills. Actions based on kills & conditions with specified chance.

  1. En_0t_S
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    [1.4.7, 1.5, 1.6, 1.7, 1.8] https://www.spigotmc.org/resources/...der-api-support.52192/download?version=207884

    [​IMG]
    *PM me if you can help with page decoration.


    [​IMG]
    • Ability to disable any of plugin messages.
    • Ability to enable kill counter only for specific items.
    • Actions based on conditions with specified chance.
    • Changing the owner by killing him.
    • Customizable lore.
    • Item kills.
    • Item owner.
    • Messages configuration.
    • Permission for each feature.
    • Placeholder API support!
    • Support for outdated versions.
    • Updating position relative to item lore.
    • Whitelist for items that can get kill counter.



    [​IMG]
    Code (Text):
    ## Position relative to item lore: 'above' or 'under'.
    position: above

    ## Which kills should be counted?
    ## Possible values: ALL, PLAYER_ONLY, MOB_ONLY.
    mode: "PLAYER_ONLY"

    ## Should the owner change when the old owner is killed by the new one?
    changeOwner: true
    ownerDefault: "none"

    ## true - PAPI placeholders will be updated on every kill.
    ## false - Only on first kill.
    update-placeholderapi: true

    ## true - Lore will be updated when player equips item.
    update-on-equip: false

    ## Plugin will ignore items with this in item lore.
    disable-killcounter: "&4Cursed Item"

    ## Item lore, supports PlaceholderAPI placeholders.
    ## Player XYZ are PAPI placeholders.
    item-lore:
      - "&4---------------------------"
      - "&4Owner: &c%itemStats_owner%"
      - "&4Kills: &c%itemStats_kills%"
      - "&4Last kill: &cX %player_x%&4, &cY %player_y%&4, &cZ %player_z%"
      - "&4---------------------------"

    ## Set useWhitelist to true if you wanna give kill counter to items that match material listed in whitelist.
    ## Material: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
    useWhitelist: true
    whitelist:
      - BOW
      - DIAMOND_SWORD
      - GOLD_SWORD
      - IRON_SWORD
      - STONE_SWORD
      - WOOD_SWORD

    ## Available Placeholders:
    ## {0} - name of the player who holds the item.
    ## {1} - name of the second player.

    ## Available Actions: ATTACK, KILL, OWNER_CHANGE;
    ## Available Conditions:
    ## Kills Conditions: less then "KILLS < 10", more then "KILLS > 10", range(inclusive) "KILLS 1 - 10";
    ## Target Conditions: OWNER, NON_OWNER;
    ## Placeholder API conditions: (less then "<", more then ">", equals "=", not equals "!=")
    ## Use: /papi parse %placeholder% - if you don't know what will be returned.

    ## DOUBLE: "DOUBLE(%player_health%) > DOUBLE(10.0)"
    ## STRING: "STRING(%player_name%) = STRING(En_0t_S)"

    ## Left - placeholder, right - value or another placeholder.
    ## Only "=" and "!=" operations available for STRING.
    ## Use STRING for boolean and DOUBLE for integer.

    ## PotionEffectType: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html

    ## Chance: 0-100;
    ## Permission: Set "none" to disable.

    actions:
      actionExample:
        action: "ATTACK"
        conditions:
        - "KILLS 1 - 10" ## Only if item kills: > 0 and < 11.
        - "OWNER" ## Only if player that holds item, owns this item.
        console_cmds:
        - "heal {0}"
        player_cmds:
        - "msg {1} I was healed and now I'm glowing!)"
        potions:
        - "GLOWING, 300, 0" ## PotionEffectType, duration in ticks, amplifier;
        chance: 100 ## Will fire at every attack.
        messages:
        - "&aYep, it works!" ## You can use color codes and placeholders: {0}, {1}.
        permission: "killCounter.actionExample" ## Only if player that holds item has this permission.
      actionExample2:
        action: "KILL"
        conditions:
        - "NON_OWNER" ## Only if player that holds item, didn't owns it.
        console_cmds: []
        player_cmds: []
        potions:
        - "WEAKNESS, 600, 0"
        - "HUNGER, 600, 0"
        chance: 100 ## Will fire at every attack.
        messages:
        - "&cYou got these effects because you are not owner of item in your hand."
        permission: "none"
      papiExample:
        action: "ATTACK"
        conditions:
        - "STRING(%player_hasitem-mat:TOTEM-amt:1%) = STRING(yes)"  ## Only if holder has 1 totem.
        - "STRING(%player_item_in_hand%) = STRING(DIAMOND_SWORD)" ## Only if holder uses diamond sword.
        console_cmds:
        - "heal {0}"
        player_cmds:
        - "msg {1} I match this conditions: %player_hasitem-mat:TOTEM-amt:1%, %player_item_in_hand%"
        potions: []
        chance: 100
        messages:
        - "&cYou match this conditions: %player_hasitem-mat:TOTEM-amt:1%, %player_item_in_hand%"
        permission: "none"
      Template:
        action: "OWNER_CHANGE" ## At owner change.
        conditions: [] ## Without any conditions.
        console_cmds: [] ## Without console commands.
        player_cmds: [] ## Without player commands.
        potions: [] ## Without potions.
        chance: 0 ## With zero chance.
        messages: [] ## Without messages.
        permission: "none" ## Without permission.

    ## You can disable any of these messages by setting "none".
    messages:
      no-permission: "&4You don't have permission to do that!"
      onlyPlayer: "&4This command can only be run by a player."
      null-item: "&4Take item to main hand!"
      already: "&4Nothing to change!"
      success: "&aSuccessfully!"
      changeOwner: "&fYou killed the previous owner (&4{1}&f). Now you(&4{0}&f) are the new owner."



    [​IMG]
    • /killcounter set [owner] [kills] - Add a kill counter to the item in the main hand. Owner and Kills are optional.
    • /killcounter reload - Reloads plugin.
    • killcounter.player.create - Permission to get kill counter on first kill.
    • killcounter.player.count - Permission to count kills.
    • killcounter.player.own - Permission to become item owner when killing old owner.
    • killcounter.player.use - Permission to run killCounter actions.
    • killcounter.player.* - All permissions listed above.
    • killcounter.admin.* - Permission for commands.



    [​IMG]
    • Better Config.
    • More actions and conditions.
    • More commands and messages.
    • Placeholder API expansion.

    I will be very grateful if you send me a few dollars ;)

Recent Reviews

  1. realtoyz62108
    realtoyz62108
    5/5,
    Version: 3.0.2
    Hey good plugin just for what i was looking for for my Server
    thanks for the Update and works fine on 1.12.2
    1. En_0t_S
  2. wolfling_
    wolfling_
    5/5,
    Version: 3.0.2
    good plugin but how do i disable actions? i would like to know this please ty ! .
    1. En_0t_S
      Author's Response
      Just set actions to "actions: []"
  3. KazMNF
    KazMNF
    5/5,
    Version: 3.0.b1
    -----------------
    -----------------
    Nice plugin.
    -----------------
    -----------------
    1. En_0t_S
      Author's Response
      Thanks for review)
  4. Dump
    Dump
    5/5,
    Version: 2.2
    ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲
    Congratulations, your plugin has been banned automatically!
  5. AutoBanPlugin
    AutoBanPlugin
    5/5,
    Version: 2.0
    It's a Realy nice Plugin
    -------------------------------------------------------
    1. En_0t_S