HomeJavaMods[Skript] Tag, you're 'it'! [1.13 -1.16]
[Skript] Tag, you're 'it'! [1.13 -1.16]
ModsJava

[Skript] Tag, you're 'it'! [1.13 -1.16]

⬇ Download on Spigot
This is a plugin that adds the game tag to your server.

Dependencies

How to install
How does the plugin work
To initiate the game of tag simply execute the command /tag (Make sure you have all the permissions set up), this will give you a tag. To tag someone else simply right click the other player and i will pass on the tag.
After someone has been tagged there is a 5 minute cooldown (This can be configured). In this time no one can get tagged, after the cooldown ends there will be a broadcast saying that the cooldown has reset (This can also be turned off).
[​IMG]

Commands
Config
Spoiler: Config 1.14 - 1.16
Code (Text):

#Config
On load:
    # Whether you want players to place the tag/barriers  Default: false
    set {placebarrier} to false
    # Whether you want players to store the tag in chests, enderchests, barrels, etc.  Default: false
    set {storetag} to false
    # Whether you want players to drop the tag  Default: false
    set {droptag} to false
    # Whether the server broadcasts if the cooldown is reset Default: true
    set {broadcast} to true
    # How many minutes it takes for the cooldown to reset (How long it takes after the "tagged" can tag another player) Default: 5
    # ----Change the number in line 68 to alter the cooldown time (The wait command doesn't work with variables)----
#End of config
# Core of the plugin
# Change only if you know what you are doing!
command /tag <player>:
    permission: tag.give
    trigger:
        if arg-1 is set:
            give argument-1 a barrier named "Tag"
command /tagcooldown [<text>]:
    permission: tag.cooldown
    trigger:
        if arg-1 is "reset":
            set {cooldown} to false
            broadcast "§7[§aTag§7] §fThe cooldown has been reset"
        if arg-1 is "activate":
            set {cooldown} to true
        if arg-1 is "":
            send message "§7[§aTag§7] §fThis command doesn't exist" to player
            send message "§7[§aTag§7] §fPlease use /tagcooldown <reset|activate>" to player
     
command /tagstatus:
    permission: tag.status
    trigger:
        if {cooldown} is false:
            if player has a barrier named "Tag":
                send message "§7[§aTag§7] §fThe cooldown is over" to player
                send message "§7[§aTag§7] §fYou can tag people" to player
            else:
                send message "§7[§aTag§7] §fThe cooldown is over" to player
                send message "§7[§aTag§7] §fWatch your back" to player
        if {cooldown} is true:
            if player has a barrier named "Tag":
                send message "§7[§aTag§7] §fThe cooldown isn't over yet" to player
                send message "§7[§aTag§7] §fYou have to wait to tag people" to player
            else:
                send message "§7[§aTag§7] §fThe cooldown isn't over yet" to player
                send message "§7[§aTag§7] §fYou can't be tagged" to player
On rightclick on player:
    if player has a barrier named "Tag":
        if {cooldown} is false:      
            remove barrier named "Tag" from player's inventory
            drop barrier named "Tag"
            if {broadcast} is true:
                broadcast "§7[§aTag§7] §fSomeone got tagged"
            set {cooldown} to true
            wait 5 minutes
            if {cooldown} is true:
                execute console command "/tagcooldown reset"
     
        else:
            send message "§7[§aTag§7] §fThe cooldown isn't over yet" to player
            send message "§7[§aTag§7] §fYou have to wait to tag people" to player  
On place barrier:
    if {placebarrier} is false:
        cancel event
 
on rightclick on chest or trapped chest or ender chest or furnace or anvil or hopper or dispenser or dropper or workbench or barrel or shulker box or white shulker box or orange shulker box or purple shulker box or light blue shulker box or yellow shulker box or lime shulker box or pink shulker box or gray shulker box or light gray shulker box or cyan shulker box or magenta shulker box or blue shulker box or brown shulker box or green shulker box or red shulker box or black shulker box:
    if player has a barrier named "Tag":
        if {storetag} is false:
            set {tagholder} to true
    else:
        if {storetag} is false:
            set {tagholder} to false
on rightclick on item frame:
    if player has a barrier named "Tag":
        if {storetag} is false:
            if player is holding a barrier named "Tag":
                cancel event
                send message "§7[§aTag§7] §fYou can't put the tag in here" to player
on inventory close:
    if {storetag} is false:
        set {tagholder} to false
     
on inventory click at barrier:
    if {storetag} is false:
        if {tagholder} is true:
            cancel event
            wait 5 tick
            send message "§7[§aTag§7] §fYou can't put the tag in here" to player  
            close player's inventory
     
on drop of barrier:
    if {droptag} is false:
        cancel event
        send message "§7[§aTag§7] §fYou are not allowed to drop the tag" to player  
 

Spoiler: Config 1.13
Code (Text):

#Config
On load:
    # Whether you want players to place the tag/barriers  Default: false
    set {placebarrier} to false
    # Whether you want players to store the tag in chests, enderchests, shulker boxes, etc.  Default: false
    set {storetag} to false
    # Whether you want players to drop the tag  Default: false
    set {droptag} to false
    # Whether the server broadcasts if the cooldown is reset Default: true
    set {broadcast} to true
    # How many minutes it takes for the cooldown to reset (How long it takes after the "tagged" can tag another player) Default: 5
    # ----Change the number in line 68 to alter the cooldown time (The wait command doesn't work with variables)----
#End of config
# Core of the plugin
# Change only if you know what you are doing!
command /tag <player>:
    permission: tag.give
    trigger:
        if arg-1 is set:
            give argument-1 a barrier named "Tag"
command /tagcooldown [<text>]:
    permission: tag.cooldown
    trigger:
        if arg-1 is "reset":
            set {cooldown} to false
            broadcast "§7[§aTag§7] §fThe cooldown has been reset"
        if arg-1 is "activate":
            set {cooldown} to true
        if arg-1 is "":
            send message "§7[§aTag§7] §fThis command doesn't exist" to player
            send message "§7[§aTag§7] §fPlease use /tagcooldown <reset|activate>" to player
     
command /tagstatus:
    permission: tag.status
    trigger:
        if {cooldown} is false:
            if player has a barrier named "Tag":
                send message "§7[§aTag§7] §fThe cooldown is over" to player
                send message "§7[§aTag§7] §fYou can tag people" to player
            else:
                send message "§7[§aTag§7] §fThe cooldown is over" to player
                send message "§7[§aTag§7] §fWatch your back" to player
        if {cooldown} is true:
            if player has a barrier named "Tag":
                send message "§7[§aTag§7] §fThe cooldown isn't over yet" to player
                send message "§7[§aTag§7] §fYou have to wait to tag people" to player
            else:
                send message "§7[§aTag§7] §fThe cooldown isn't over yet" to player
                send message "§7[§aTag§7] §fYou can't be tagged" to player
On rightclick on player:
    if player has a barrier named "Tag":
        if {cooldown} is false:      
            remove barrier named "Tag" from player's inventory
            drop barrier named "Tag"
            if {broadcast} is true:
                broadcast "§7[§aTag§7] §fSomeone got tagged"
            set {cooldown} to true
            wait 5 minutes
            if {cooldown} is true:
                execute console command "/tagcooldown reset"
     
        else:
            send message "§7[§aTag§7] §fThe cooldown isn't over yet" to player
            send message "§7[§aTag§7] §fYou have to wait to tag people" to player  
On place barrier:
    if {placebarrier} is false:
        cancel event
 
on rightclick on chest or trapped chest or ender chest or furnace or anvil or hopper or dispenser or dropper or workbench or shulker box or white shulker box or orange shulker box or purple shulker box or light blue shulker box or yellow shulker box or lime shulker box or pink shulker box or gray shulker box or light gray shulker box or cyan shulker box or magenta shulker box or blue shulker box or brown shulker box or green shulker box or red shulker box or black shulker box:
    if player has a barrier named "Tag":
        if {storetag} is false:
            set {tagholder} to true
    else:
        if {storetag} is false:
            set {tagholder} to false
on rightclick on item frame:
    if player has a barrier named "Tag":
        if {storetag} is false:
            if player is holding a barrier named "Tag":
                cancel event
                send message "§7[§aTag§7] §fYou can't put the tag in here" to player
on inventory close:
    if {storetag} is false:
        set {tagholder} to false
     
on inventory click at barrier:
    if {storetag} is false:
        if {tagholder} is true:
            cancel event
            wait 5 tick
            send message "§7[§aTag§7] §fYou can't put the tag in here" to player  
            close player's inventory
     
on drop of barrier:
    if {droptag} is false:
        cancel event
        send message "§7[§aTag§7] §fYou are not allowed to drop the tag" to player  
 

Suggestions/Bugs

If you have any suggestions for this plugin that I could add or encounter a bug. Please message me on discord GerwinT#8570.
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.

[Skript] Tag, you're 'it'! [1.13 -1.16] is a free Minecraft Java mod. Compatible with Minecraft 1.13, 1.14, 1.15, 1.16. Downloaded 799 times (via Spigot). Download it and open it directly in the game.

Explore more