HomeJavaModsGiveMeHead
GiveMeHead
DISCLAIMER: Don't decompile this plugin. The code needs a rewrite however I won't be able to do this until the very end of July. I'm trying to save you from all the static abuse and poor coding conventions.
[​IMG]
[​IMG]
[​IMG] [​IMG] [​IMG]
I know the name's a bit cheeky but this plugin literally does give players the opportunity to get heads from other people. Give your players a chance to behead others and steal a random percentage of their money!

Head hunting
Customise stealing a random percentage of money
from the victim when they are successfully beheaded!​

Behead other players
Customise the chance of beheading someone, the
"givemehead.exempt" perm means you can't be beheaded.

Looting affects chances
Want different levels of looting to have a higher
chance of beheading others? That's now possible!

Right-click heads for info
Since the plugin stores information on heads placed,
you can right-click placed heads to see the killer and victim!

Fully configurable
You can change everything including messages,
chances of beheading and head hunting percentages!
Commands and permissions:
Code (YAML):
commands:
    behead
:
        aliases
: [beheading, givemehead, gmh, head ]
        description
: "Show head information."
    givehead
:
        usage
: "/givehead [player] [headof] [killedby]"
        description
: "Give a player a head."
permissions
:
    givemehead.use
:
        description
: "Allows you to use '/behead' to show who the currently held head belongs to."
        default
: op
    givemehead.rightclick
:
        description
: "Allows you to right-click a head to see the name of the killer and victim."
        default
: op
    givemehead.exempt
:
        description
: "Anyone with this permission node is exempt from getting beheaded/money taken from them."
        default
: op
    givemehead.debug
:
        description
: "Anyone with this permission node will receive debug messages if it is enabled in the config."
        default
: op
    givemehead.give
:
        description
: "Give a head to another player using '/givehead' or '/behead give'."
        default
: op
Configuration:
Code (YAML):
# GiveMeHead by Terrobility <3
# I know I usually put fancy ASCII art in my plugin configurations but this one would literally blow you away.

# 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
: 5

# Enable debug messages. This requires the "givemehead.debug" permission node.
debug
: false

plugin-messages
:
    no-permission
: "&cYou don't have permission."
    no-head-data
: "&cWe couldn't find any data for this skull!"
    head-command
: "&aYou're holding the skull of &2%killed%&a, who was beheaded by &2%killer%&a."
    right-click-skull
: "&aThis skull belongs to &2%killed%&a, who was beheaded by &2%killer%&a."
    right-click-skull-no-killer
: "&aThis skull belongs to &2%killed%&a. We couldn't find any information on the killer."
    not-holding-skull
: "&cYou must hold a skull in your hand!"
    stole-money-from
: "&7You stole &a$%amount% &8(&f%percentage%%&8) &7from &b%killed%&7! You now have &2$%killerbalance%&7."
    was-stolen-from
: "&b%killer% &7stole &a$%amount% &8(&f%percentage%%&8) &7from you! You now have &2$%killedbalance%&7."
    give-head-not-online
: "&cYou can't give head to a player that isn't online!"
    gave-head
: "&aSuccessfully gave &2%player% &aa head belonging to &e&l&o%killed%&a, who was killed by &f%killer%&a!"
    given-head
: "&aYou were given a head belonging to &e&l&o%killed%&a, who was killed by &f%killer%&a!"

beheading
:
    enabled
: true
    blocked-worlds
:
       - world_test
    head
:
        name
: "&e&l&o%killed%&6&o's Head"
        lore
:
       - "&7Killed by &f%killer%&7."
    probability
:
        regular-base-chance
: 5
        out-of
: 100
        # Change the base chance if the killer has looting on their sword.
        looting-base-chance
:
            # If the killer has level 1 looting.
            level1
: 7
            # If the killer has level 2 looting.
            level2
: 10
            # Level 3 also includes any levels of looting above it.
            level3
: 15
    head-hunting
:
        # This requires Vault!
        # Steal a random percentage of money from the killed person's balance when you kill them.
        enabled
: true
        # Either "flat" or "percentage".
        mode
: percentage
        flat
:
            # Whether to allow the killed player's balance go into negatives.
            minus-money
: false
            # How much money to take from the player.
            amount
: 69
        percentage
:
            # The minimum percentage of money the killer can steal.
            minimum-percentage
: 10
            # The maximum percentage of money the killer can steal.
            maximum-percentage
: 30
    death-message
:
        # Replace the death message with the message below.
        change-death-message
: false
        # Use the in-built broadcaster to show everyone the message below.
        use-bukkit-broadcaster
: true
        # Use their raw name or their display name in the message.
        use-player-display-name
: true
        # Placeholders: %killed%, %killer%, %chance%, %outof%, %randomnumbergenerated%
        message
: "&e%killed%&e was beheaded by %killer%&e! &8(&f%chance%&7/&f%outof%&8)"

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.​

GiveMeHead © 2016.
This plugin is free because I'm trying to expand my knowledge of Java and build up my portfolio.

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

GiveMeHead is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9. Downloaded 1,893 times (via Spigot). Download it and open it directly in the game.

Explore more