Solved Command does not show up in game (I made a different command to add members)

  • Welcome to skUnity!

    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 community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

pazpiz

Member
Dec 31, 2024
1
0
1
I am making a Team script and I want that you have to pay 1 diamond for the ability to have more players in your team but when I go test the Skript in game the command does not work it shows this message:
Unknown or incomplete command, see below for error
teamcreate test &3test 3<--[HERE]

My Skript is:
Code:
command /teamcreate <text> <text> <integer>:
    usage: "/teamcreate <name> <prefix> <number of max players>"
    aliases: tc, teamc
    permission: team.create
    trigger:
        set {_cost} to arg 3
        send "This will cost %{_cost}% diamonds." to player
        if player has {_cost} diamond:
            remove {_cost} diamond from player's inventory
            send "Team created successfully!" to player
        else:
            send "You don't have enough diamonds. You need %{_cost}% diamonds." to player

can someone help me?


Edit: the server is on 1.21 and it uses Paper. I have Skript, SkBee and SkQuery installed (TuSKe too but it is red when I do /plugins)