CONFIG REWORK!
Whats new!
Config rework, it will change alone, but do a backup of your just for safety
Safe mechanic improved!
Now you can set differents safe inventories and more!
Code (YAML):
# Robbing dev by FrahHS
# Spigot page: https://www.spigotmc.org/resources/robbing-%E2%AD%95-custom-items-%E2%AD%90-robbery-rp-experience.105443/
# If you need help or have any problem with the plugin join my discord
# https://discord.gg/Hh9zMQnWvW
general
:
# send on join message to operators if new version of the plugin will be available
update_checker
: true
robbing:
enabled
: true
# enable alert to send to the robbed target, write {thief} to use thief Display Name
alert
: true
# down here list of all items not stealable,
# only names, no id
denied_items
:
- DIAMOND
- DIAMOND_BLOCK
# max distance in block during robbind after that target inventory close
max_distance
: 5
# cooldown setting (put timeout to 0 to disable)
steal_cooldown
: 120
# sneaky right-click to steal if enabled, just right click if disabled
sneak_to_steal
: true
handcuffing:
enabled
: true
# enable right click handcuffed player to make he follow you
following
: true
# Safes mechanic
# put items in that way:
# safes:
# - safe_1:
# safe_display_name: "safe"
# crack_chance: 0.3
# slots:
# slot1:
# item: DIAMOND
# amount: 15
# slot2:
# item: DIAMOND_BLOCK
# amount: 3
# - safe_2:
# ...
#
# Safes names (safe_1, safe_2, ...) can be changed, will be the item type that you must use in createsafe command.
# You can put max 9 slot for each safe (probably will be more flexible in future).
# Slots must have the same incremental name (slot1, slot2, slot3, ...).
# You can set max 64 of amounts for each item,
# if you overflow the max of 9 slot or the max of 64 amount plugin will cut the last items
safes:
- safe_1:
safe_display_name
: safe
crack_chance
: 0.3
slots:
slot1:
item
: DIAMOND
amount
: 15
slot2:
item
: DIAMOND_BLOCK
amount
: 3
- safe_2:
safe_display_name
: safe
crack_chance
: 0.5
slots:
slot1:
item
: GOLD_INGOT
amount
: 42
# all plugin messages, if i forgot something join the discord to remember me :'D
messages:
cooldown
: You have to wait another
{time
} seconds
alert
: '
{thief
} is robbing you!'
cant_steal
: You can't steal it!
escaped
: '
{target
} escaped!'
crack_fail
: Cracking attempt failed
crack_success
: Safe successfully cracked
cuffed
: You've been cuffed by
{player
}
uncuffed
: You've been uncuffed by
{player
}
cuff
: You cuffed
{target
}
uncuff
: You uncuffed
{target
}
you_cant_when_cuffed
: You can't do that when you are cuffed!
make_follow_cuffed
: '
{target
} is following you'
make_unfollow_cuffed
: '
{target
} is not following you'