Jump to content
  • 0

How to make a /daily so it gives you a crate key using CratesPlus Reloaded plugin


Abogen

Question

can anyone make me a /daily command script so that I receive a custom crate key that I can use to open the crate. I tried multiple different methods but they all didn't work Here is the link to the website with all the commands: https://www.spigotmc.org/resources/cratesplus-reloaded.95122/

This is the command I have so far:

 

command /daily:
  cooldown: 1 day
  trigger:
    execute console command "/crate key daily %player% 1"
    send "You have redeemed your Daily Crate Key"
    send "Go to the Crate to redeem your Daily reward"   

Edited by AbogenBoofHeadJr
Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

You should check your console logs, see if your plugin is spitting out any errors

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Exploratory, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

  • 0
21 minutes ago, AbogenBoofHeadJr said:

it just says theres an error in this line of code  execute console command "/crate key daily %player% 1"

I ran your code through a parser, and it doesn't seem to give off any errors.
I've redone your code a bit so try to use this

 

command /daily:
    cooldown: 1 day
    trigger:
        make console execute command "crate key daily %player% 1"
        send "You have redeemed your Daily Crate Key%nL%Go to the Crate to redeem your Daily reward"

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Exploratory, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

  • 0
Posted (edited)

The code still doesn't work, it sends all the messages but it doesn't give me the key. I ran the /skript and /ver in my Minecraft server and this is what has come up.

image.png.21d6fdf2106084dc5d0f15f15c0d47c6.png

when I do /daily it sends these messages which is normally should but no key.

image.png.5f6c0ac58a4146a3431056de2b9eb5f6.png

image.png.d77b2f00084fdec04e3f1cd52ccc47e9.png

Edited by AbogenBoofHeadJr
Link to comment
Share on other sites

  • 0

Hey there give this a try! 

command /daily:
  cooldown: 24 Hours
  cooldown message: &cYou have already claimed your daily reward.
  trigger:
    send "&aHere is your daily key."
    execute console command "crates key give %player% daily 1"

Nuh

Link to comment
Share on other sites

  • 0

Everything worked perfectly but it still didn't give me the key. Ill try and explain it a bit better. So I have a plugin Creates plus reloaded and I have created a Daily crate that you can open every 24 hours. and this command to give yourself a custom key to that crate /crate key Daily (Username) 1. The key can only be using on the daily crate, it is a custom item not a regular item in Minecraft (some sort of enchanted tripwire hook). So I need a script that can give me that crate key.

 

 execute console command "crates key give %player% daily 1" this script doesn't work but everything else in the code works for example, this code still works send "&aHere is your daily key.So there is only something wrong with the execute console command part of the script. Here is a link to the crates plus reloaded plugin with a list of all the commands https://www.spigotmc.org/resources/cratesplus-reloaded.95122/.

 

Hopefully this explains it a bit more, as I am still at a loss for how this works.

 

Link to comment
Share on other sites

  • 0
1 hour ago, Abogen said:

Everything worked perfectly but it still didn't give me the key. Ill try and explain it a bit better. So I have a plugin Creates plus reloaded and I have created a Daily crate that you can open every 24 hours. and this command to give yourself a custom key to that crate /crate key Daily (Username) 1. The key can only be using on the daily crate, it is a custom item not a regular item in Minecraft (some sort of enchanted tripwire hook). So I need a script that can give me that crate key.

 

 execute console command "crates key give %player% daily 1" this script doesn't work but everything else in the code works for example, this code still works send "&aHere is your daily key.So there is only something wrong with the execute console command part of the script. Here is a link to the crates plus reloaded plugin with a list of all the commands https://www.spigotmc.org/resources/cratesplus-reloaded.95122/.

 

Hopefully this explains it a bit more, as I am still at a loss for how this works.

 

then its likely that the plugin itself is having issues, try something like this then:

 

command /setdailykey:
	permission: op
	trigger:
		set {DailyKey} to player's held item
		send "&eSet key!"

command /daily:
	cooldown: 1 day
	trigger:
		give player {DailyKey}


First give yourself the key, then use the command /setdailykey while holding that key

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Exploratory, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...