Handcuff Plugin

Status
This thread has been locked.

Max12

Feedback score
2
Posts
18
Reactions
3
Resources
0
For a player to be arrested, a police officer (someone with the proper arrest permissions) would need to use a handcuff item (ID changeable in the config, can be a stick by default, but must have unbreaking on it incase it is something else) they would need to right click the person they want to arrest with the handcuffs. (the person must be still or moving slower than walking speed such as sneaking) in order for the handcuffs to work, (when jailing a title screen that countdowns should say "Cuffed in X Seconds" when it reaches 0 it should cuff the player) a police officer can look at the player and do /uncuff if they wish to remove the handcuffs. Once the criminal has handcuffs on them, they can not use any item in their inventory (including crackshot guns) if there is an empty space in their hotbar they will go to that automatically so that they are not holding anything. They also can not move if they have handcuffs. The police officer should be able to then drag the player around once handcuffs are on by using a command or something, if the police officer places them above or next to an entity such as a horse or minecart, they should be able to use another command to force them into the seat, and they will not be able to get out until a police officer pulls them out with a command.

(while handcuffed it is important that you can not do commands, but I should be able to whitelist commands that can be done in the config.)

Should be made to work with this plugin: https://dev.bukkit.org/projects/jail

Time frame: 1 or 2 weeks
Budget: $30 (price is negotiable)
Contact: please contact through pm only.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

LordOfTime

Feedback score
15
Posts
602
Reactions
245
Resources
0
Can't do that (it's client side) :(

Seems very interesting for a prison server, GL with finding a developer. If you can't find one PM me.

Uh, not literally, but generally. Just rearrange the hotbar and/or inventory order a tiny bit if you really need to. Move the item that's in their hand to another slot, and you should be good.
 

Clyde

Premium
Feedback score
44
Posts
1,574
Reactions
1,220
Resources
0
For a player to be arrested, a police officer (someone with the proper arrest permissions) would need to use a handcuff item (ID changeable in the config, can be a stick by default, but must have unbreaking on it incase it is something else) they would need to right click the person they want to arrest with the handcuffs. (the person must be still or moving slower than walking speed such as sneaking) in order for the handcuffs to work, (when jailing a title screen that countdowns should say "Cuffed in X Seconds" when it reaches 0 it should cuff the player) a police officer can look at the player and do /uncuff if they wish to remove the handcuffs. Once the criminal has handcuffs on them, they can not use any item in their inventory (including crackshot guns) if there is an empty space in their hotbar they will go to that automatically so that they are not holding anything. They also can not move if they have handcuffs. The police officer should be able to then drag the player around once handcuffs are on by using a command or something, if the police officer places them above or next to an entity such as a horse or minecart, they should be able to use another command to force them into the seat, and they will not be able to get out until a police officer pulls them out with a command.

(while handcuffed it is important that you can not do commands, but I should be able to whitelist commands that can be done in the config.)

Should be made to work with this plugin: https://dev.bukkit.org/projects/jail

Time frame: 1 or 2 weeks
Budget: $30 (price is negotiable)
Contact: please contact through pm only.
Holy fucking shit I was working on this plugin actually quite some time ago.
 

LordOfTime

Feedback score
15
Posts
602
Reactions
245
Resources
0
I'm talking about changing the slot (moving the item is possible, but not moving the slot).

I know you are. First, it would be theoretically possible, perhaps you could simulate an event for the inventory to have it change the slot, but even if that's not possible, shifting the items is still pretty much what they want.
 

TheRealDan

Software Developer
Supreme
Feedback score
15
Posts
274
Reactions
126
Resources
0
ohvals, LordOfTime
Code:
player.getInventory().setHeldItemSlot();
Completely possible to change the players selected slot.
Would also still require you to remove an item though, since a player may have a full hotbar.
 

TheRealDan

Software Developer
Supreme
Feedback score
15
Posts
274
Reactions
126
Resources
0
Or you know, cancel the interact on the item..
Assuming Crackshot (and other plugins) pay attention to whether the event is canceled or not.

Would probably look better anyway if the handcuffed player can't fiddle around with his hotbar.
 

matthewp

Software Developer
Supreme
Feedback score
14
Posts
542
Reactions
503
Resources
0
Assuming Crackshot (and other plugins) pay attention to whether the event is canceled or not.

Would probably look better anyway if the handcuffed player can't fiddle around with his hotbar.

I was just saying.

There are many ways you can do it. For example:
- Setting slot 5 to nothing and making a runnable to prevent the player from switching their hotbar slot.
- Cancelling interact
- Clearing their entire hotbar

It depends on how he wants it but any way is possible.
 
Status
This thread has been locked.
Top