[ABANDONED] CuffEm icon

[ABANDONED] CuffEm -----

Cuff a prisoner



Cuff a prisoner.

When you hold a pair of cuffs, you can make someone follow you by right clicking on them. Right click again to release them.

Now supporting uncuff signs. (only for MC1.14.1 and up)
These are signs which will uncuff all the players you have cuffed at the time.
Additionally (optional), commands ( uncuff-sign-commands in config) may be run by the cuffing player when the sign is clicked. These commands have the {cuffed} placeholder for the cuffed player.
If multiple players were cuffed, then the commands will be executed for each cuffed player.
One can set an uncuff sign using the /setuncuffsign command ( cuffem.setuncuffsign permission node, defaults to OP).
The data for this sign is saved within the sign. So removing/breaking the sign will remove this data.

Supported vehicle plugins (optional):
QualityArmory - Vehicles
Vehicles

Commands:
Code (Text):
givecuffs <player> - give cuffs to player
cuff <player> - cuffs a player
cuffem - check version of plugin
uncuff - uncuff a player
setuncuffsign - set an uncuff sign
setcuffitem - set the cuff item to the item in your main hand
cuffemreload - reload the config
cuffemclearstoredinv - allows clearing the stored inventory of a player

Permissions:
Code (Text):
cuffem.give - Allow giving cuffs to a player (default: op)
cuffem.cuff - Allow cuffing another player (default: true)
cuffem.cuffcommand - Allow cuffing another player using the command (default: op)
cuffem.uncuff - Allow uncuffing a player you have cuffed (default: op)
cuffem.uncuff.other - Allow uncuffing a player somebody else has cuffed (default: op)
cuffem.version - Allow seeing of version (default: op)
cuffem.dccommand - Allow dispatching of commands on "prisoner" disconnect (default: op)
cuffem.setuncuffsign - Allow setting uncuff signs
cuffem.setcuffitem - Allow setting the cuff item
cuffem.cuffemreload - Allow reloading the config
cuffem.immune - Makes the user immune to cuffing (default: false)
cuffem.cuffemclearstoredinv - Allows clearing the inventory of a player (default: op)

Code (Text):
cuff-type: BLAZE_ROD # these are only used if the new cuff item (cuff-item) is not set
cuff-name: "&dThem &a&lCuffs!" # name that appears for item
cuff-item: # NEW cuff item
  ==: org.bukkit.inventory.ItemStack
  type: BLAZE_ROD
  meta:
    ==: ItemMeta
    meta-type: UNSPECIFIC
    display-name: '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"light_purple","text":"Them
"},{"bold":true,"italic":false,"color":"green","text":"Cuffs!"}],"text":""}'
right-click-cuff-side-effect-commands: [] # Commands to be executed upon right clicking on a player in order to cuff them
                                               # Each command can parse {player} or {dragee} to the name of the player being dragged and
                                               # {dragger} to the name of the player doing the dragging.
max-cuffed-per-person: 1            # how many players can one player cuff at once
drag-distance: 5                         # maximum distance
drag-ticks: 10                              # every 10 ticks -> twice a second
drop-items-upon-cuff: true        # the one being cuffed drops all items if enabled
drop-item-target: GROUND #  the strategy for dropping items. Options: GROUND or DESPAWN or STORE (default is GROUND) - STORE allows storing the items on disk
cuffed-prisoner-bar-color: RED # color of the boss bar
cuffed-guard-bar-color: GREEN # color of the boss bar
use-quality-armory-vehicles: true # whether or not to hook into the QualityArmoryVehicles plugin
use-vehicles-plugin: true # whether or not to hook into the Vechicles plugins if/when available
use-bossbar-when-cuffed: true # if set to false, there will be no bossbar shown when cuffed (for either player)
allow-cuffs-without-tag: false # if set to true, players can simply craft and/or rename their items to match the cuffs
stop-interact-when-cuffed: false # whether or not to stop cuffed players interacting with the inventory
stop-pvp-when-cuffed: false # whether or not the cuffed player can PvP
allow-cuff-NPCs: false # if set to true, you will be able to cuff NPC "players"
cuff-command-limitations:
  only-within-same-world: false
  within-radius: -1 # negative mean no radius gap
uncuff-sign-commands: []  # commands that will be run when the uncuff sign is used. The {cuffed} placeholder will be replaced with the name of the cuffed player. If multiple players are cuffed, then the commands will be executed once for each cuffed player.
cuffed-player-leave-commands: # commands executed when the cuffed player leaves
- "bc &8{player}&6 left while being cuffed by {from}"
remove-binded-armor: false
use-bstats: true # whether or not to use bStats
messages:  # configurable messages
  player-not-found: "&cPlayer not found: &8{player}"
  gave-player-cuffs: "&6Gave cuffs to &8{player}"
  received-cuffs: "&cReceived a shiny pair of cuffs!"
  player-being-cuffed: "&6You have been cuffed by &8{player}"
  player-cuffing-other: "&6You have cuffed &8{player}"
  player-uncuffing-other: "&6The cuffs from &8{player}&6 have been lifted"
  player-already-dragging: "&6You are already cuffing &4{nr}&6 others, unable to cuff more"
  cuffed-cannot-interact: "&6You are cuffed and thus cannot use your inventory right now"
  cuffed-cannot-pvp: "&6You are currendly cuffed an thus cannot PvP right now"
  player-being-uncuffed: "&6The cuffs from &8{player}&6 have been lifted"
  player-not-cuffed-by-you: "&6The player &8{player}&6 is not cuffed by you!"
  not-looking-at-sign: "You are not looking at a sign"
  sign-already-marked: "This sign has already been marked as an uncuff sign"
  not-dragging-anyone: "You are currently not dragging anyone and thus cannot use the uncuff sign"
  sign-marked-for-uncuff: "The sign has successfully been marked as an uncuff sign"
  set-cuff-item: "Set the new cuff item to the item in your hand"
  reloaded: "Reloaded the config"
  player-immune: "&6Player &8{player}&6 is immune to cuffing"
  already-cuffing: "&cYou have already cuffed &8{player}"
  cannot-cuff-self: "&cYou cannot cuff yourself"
  target-in-wrong-world: "&cYou cannot cuff somebody in a different world"
  target-too-far: "&cThe target player is too far away"
  not-allowed-to-cuff: "&cYou do not have permission to use cuffs right now"
  items-dropped-on-uncuff-dragee: "&cNot all items fit in your inventory so &8{nr}&c of them were dropped"
  items-not-dropping-upon-cuff: "&cItems are not set to drop upon cuffing"
  dropper-strategy-no-store: "&cThe current dropper strategy does not allow storing of inventories"
  dropper-no-stored-inventory: "&cThere does not seem to be an inventory for player &8{player}"
  dropper-cleared-stored-inventory: "&cCleared the stored inventory of &8{player}"
  log:  # these ones are messages logged to console
    player-got-cuffs: "&8{player}&6 got cuffs from &7{from}"
    player-cuffing-other: "&8{player} &6 is cuffing &7{other}"
    player-uncuffing-player: "&8{player}&6 uncuffed &7{other}"


Tested on 1.13.1 and 1.12.2, but support for other versions can be added on request.

Open to all sorts of suggestions :)

[​IMG]

bStats.
Resource Information
Author:
----------
Total Downloads: 17,254
First Release: Oct 21, 2018
Last Update: Nov 7, 2023
Category: ---------------
All-Time Rating:
25 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings