Jump to content

Does anyone know why this skript dosent work


ThunderStorm

Recommended Posts

on first join:
    chance of 50%:
        make player execute command "/kit starter"
    else:
        make player execute command "/kit gear"

 

this skript is supposed to give players a 50% chance of getting one kit however it dosent give them any kits when i added the chance thing. Does anyone know why it dosent work and how to fix it?

IGN: LordUltron    Discord: ThunderStorm#6354

-------------------------------------------------------------image.png.4c4c27822b59b56f6996b43655338072.png

-------------------------------------------------------------
 

Link to comment
Share on other sites

The code should work as long as there are no errors.

You need to make sure the default group has permissions to do those commands, use a permissions plugin like Luckperms and use the node:

essentials.kits.gear 
essentials.kits.starter

essentials.kits
essentials.kit


and that should work! You can test it by changing On first Join to On Join shortly and then DEOPPING yourself, rejoining, and seeing if you get it.

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

Link to comment
Share on other sites

Rosa, you can just make custom kits with skript tho? 

for example:

command /kit [<text>] [<offline player>]:
    cooldown: 10 minutes
    cooldown message: &c&lHey&7, wait 10 minutes for your kit!
    trigger:
        if arg-2 is set:
            set {_p} to arg-2
        else:
            set {_p} to player
        if arg-1 is "starter":
            give {_p} 1 leather helmet named "&6&lStarter Helmet"
            give {_p} 1 leather chestplate named "&6&lStarter Chestplate"
            give {_p} 1 leather leggings named "&6&lStarter Leggings"
            give {_p} 1 leather boots named "&6&lStarter Boots"

 

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...