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:
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)
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)