Ok so I need a dupe command that has a cooldown, cooldown bypass, permissions, and items that are blocked. I would like a command to add items to this blocked list and a command to unblock items from this blocked list.
Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
command /dupe:
trigger:
give player's tool to player
Variables:
{dupedelay.%player%} = true
command /dupe [<text>]: #delay is 30 seconds you can change it from line 19
trigger:
if arg 1 is not set:
if player has permission "dupedelay.bypass":
if {blockeditems::*} contains player's tool:
send "&cYou can't dupe this item!" to player
else:
give player's tool to player
else:
if {dupedelay.%player%} is true:
if {blockeditems::*} contains player's tool:
send "&cYou can't dupe this item!" to player
else:
give player's tool to player
set {dupedelay.%player%} to false
wait 30 seconds # change the delay
set {dupedelay.%player%} to true
else:
send "&cYou have to wait before using that command again!" to player
if arg 1 is "add" or "block":
if player has permission "dupe.add" or "dupe.block":
if {blockeditems::*} contains player's tool:
send "&bThis item is already blocked." to player
else:
add player's tool to {blockeditems::*}
send "&aSucesfully added &e%player's tool% &afrom blocked items." to player
else:
send "&cYou don't have permission for that command!"
if arg 1 is "remove" or "unblock":
if player has permission "dupe.remove" or "dupe.unblock":
if {blockeditems::*} contains player's tool:
remove player's tool from {blockeditems::*}
send "&cSucesfully removed &e%player's tool% &cfrom blocked items." to player
else:
send "&bThis item is not blocked." to player
else:
send "&cYou don't have permission for that command!"
great way not only to necropost but to just copy and paste the previous person's codevariables:
{dupedelay.%player%} = true
command /dupe [<text>]: #delay is 30 seconds you can change it from line 19
cooldown: 1.5 day
permission: test
cooldown message: &cYou need to wait &61.5 &cday to execute this command again.
cooldown bypass: xfastboxx.permission.bypass.dupe
trigger:
if arg 1 is not set:
if player has permission "dupedelay.bypass":
if {blockeditems::*} contains player's tool:
send action bar "&cYou can't dupe this item!" to player
else:
give player's tool to player
else:
if {dupedelay.%player%} is true:
if {blockeditems::*} contains player's tool:
send action bar "&cYou can't dupe this item!" to player
else:
give player's tool to player
set {dupedelay.%player%} to false
wait 30 seconds # change the delay
set {dupedelay.%player%} to true
else:
send "&cYou have to wait before using that command again!" to player
if arg 1 is "add" or "block":
if player has permission "dupe.add" or "dupe.block":
if {blockeditems::*} contains player's tool:
send "&bThis item is already blocked." to player
else:
add player's tool to {blockeditems::*}
send "&aSucesfully added &e%player's tool% &afrom blocked items." to player
else:
send "&cYou don't have permission for that command!"
if arg 1 is "remove" or "unblock":
if player has permission "dupe.remove" or "dupe.unblock":
if {blockeditems::*} contains player's tool:
remove player's tool from {blockeditems::*}
send "&cSucesfully removed &e%player's tool% &cfrom blocked items." to player
else:
send "&bThis item is not blocked." to player
else:
send "&cYou don't have permission for that command!"
Sorry for replying on old thread!
please do not report/warn me
ahahaahahgreat way not only to necropost but to just copy and paste the previous person's code
Code:Variables: {dupedelay.%player%} = true command /dupe [<text>]: #delay is 30 seconds you can change it from line 19 trigger: if arg 1 is not set: if player has permission "dupedelay.bypass": if {blockeditems::*} contains player's tool: send "&cYou can't dupe this item!" to player else: give player's tool to player else: if {dupedelay.%player%} is true: if {blockeditems::*} contains player's tool: send "&cYou can't dupe this item!" to player else: give player's tool to player set {dupedelay.%player%} to false wait 30 seconds # change the delay set {dupedelay.%player%} to true else: send "&cYou have to wait before using that command again!" to player if arg 1 is "add" or "block": if player has permission "dupe.add" or "dupe.block": if {blockeditems::*} contains player's tool: send "&bThis item is already blocked." to player else: add player's tool to {blockeditems::*} send "&aSucesfully added &e%player's tool% &afrom blocked items." to player else: send "&cYou don't have permission for that command!" if arg 1 is "remove" or "unblock": if player has permission "dupe.remove" or "dupe.unblock": if {blockeditems::*} contains player's tool: remove player's tool from {blockeditems::*} send "&cSucesfully removed &e%player's tool% &cfrom blocked items." to player else: send "&bThis item is not blocked." to player else: send "&cYou don't have permission for that command!"
command dupe [<text>]:
trigger:
if player's tool is not air:
if {blockeditems::*} contains player's tool:
send action bar "&cYou can't dupe this item!" to player
else:
give player's tool to player
else:
send action bar "&cYou can't dupe air." to player
if player has permission "xlifedupe.command.dupe.block":
if arg-1 is "block":
if {blockeditems::*} doesn't contain player's tool:
if player's tool is not air:
send "&aSuccess: Added &6%player's tool%&a to blocked items!"
add player's tool to {blockeditems::*}
else:
send "&cError: This item cannot be in blocked items"
else:
send "&cError: This item is already in blocked items"
if player has permission "xlifedupe.command.dupe.remove":
if arg-1 is "remove":
if {blockeditems::*} contains player's tool:
send "&aSuccess: Removed &6%player's tool%&a from blocked items!"
remove player's tool from {blockeditems::*}
else:
send "&cError: This item isn't exist in blocked items"