#error message "add "permission.node.spawn2" to permissions of player"
1 messages · Page 1 of 1 (latest)
i have luckperms
and i have added permissions.node.spawn2 for long and still dont work
why dont u just remove the permission requirement to use /spawn2
if player can use the command
oh cuz u dont want them to be able to use the command without okay
yea
altirnative option
is that u can set a variable to 1 when player can use /spawn2
t
and make a
if {value} is 1:
on the /spawn2 command
then just set the {variable} to 0 so the player cant tp when the {value} is not 1
k
command /spawn2:
trigger:
if {value} is 1:
teleport player to {spawn2_location}
send "&aYou have teleported to spawn2!"
else:
send "cant use this command"
not finished uh
i missclicked
then on your on load you put:
set {value} to 1
instead of add permission to player
and where do u remove the permission ?
luckperms web?
add "permission.node.spawn2" to permissions of player ?
dont u remove the permission to /spawn2 after they do the command ?
no i want them to get the permission to get /spawn2 and /spawn
so u dont even need to set permission
if u dont set permission for the command they have the permission to execute it by default
but i want them to get the permission when they teleport there
just do
command /spawn2:
trigger:
teleport player to {spawn2_location}
send "&aYou have teleported to spawn2!"
k
bc its apart of the game
like u need to unlock the ability to use the command ?
like when u reaches the end of the game u get a nether star and when u right click it you get teleported to a place and then get the command to do /spawn2 but it doesnt work if u havent got the nether star and right clicked it
on load:
This variable stores the location for /spawn2.
Replace X, Y, Z, and WORLD with the actual coordinates and world name for the spawn2 location.
set {spawn2_location} to location (200.500, 70, 200.500) in world "world"
on right click holding a nether star:
if player is holding a nether star named "&eGalaxy Portal":
if {nstar} is set:
teleport player to {nstar}
send "&aUse &e/spawn &ato teleport to the original place and use &e/spawn2 &ato teleport to the place you are in now."
remove 1 nether star named "&eGalaxy Portal" from player's inventory
set {spawn2perm} to 1
else:
send "&cThe Galaxy Portal location hasn't been set yet."
command /spawn2:
trigger:
teleport player to {spawn2_location}
send "&aYou have teleported to spawn2!"
?
on load:
This variable stores the location for /spawn2.
Replace X, Y, Z, and WORLD with the actual coordinates and world name for the spawn2 location.
set {spawn2_location} to location (200.500, 70, 200.500) in world "world"
on right click holding a nether star:
if player is holding a nether star named "&eGalaxy Portal":
if {nstar} is set:
teleport player to {nstar}
send "&aUse &e/spawn &ato teleport to the original place and use &e/spawn2 &ato teleport to the place you are in now."
remove 1 nether star named "&eGalaxy Portal" from player's inventory
set {spawn2perm} to 1
else:
send "&cThe Galaxy Portal location hasn't been set yet."
command /spawn2:
trigger:
if {spawn2perm} is 1:
teleport player to {spawn2_location}
send "&aYou have teleported to spawn2!"
else:
send "You havent unlocked that yet"
try this
and put the {spawn2perm} to 0 by default
in your variable file
wait actually
wheres the variable file-
wait i made a mistake
k
on load:
This variable stores the location for /spawn2.
Replace X, Y, Z, and WORLD with the actual coordinates and world name for the spawn2 location.
set {spawn2_location} to location (200.500, 70, 200.500) in world "world"
on right click holding a nether star:
if player is holding a nether star named "&eGalaxy Portal":
if {nstar} is set:
teleport player to {nstar}
send "&aUse &e/spawn &ato teleport to the original place and use &e/spawn2 &ato teleport to the place you are in now."
remove 1 nether star named "&eGalaxy Portal" from player's inventory
set {spawn2perm.%player%} to 1
else:
send "&cThe Galaxy Portal location hasn't been set yet."
command /spawn2:
trigger:
if {spawn2perm.%player%} is 1:
teleport player to {spawn2_location}
send "&aYou have teleported to spawn2!"
else:
send "You havent unlocked that yet"
here
do u have a
on first join:
event
on ur code ?
the Galaxy Portal interact is the skript were talking about
do u mean Galaxy Portal interact?
so u need to add an event on the
on first join:
which is
set {spawn2perm.%player%} to 0
and then ur good
actually u need to initialise your variable to 0, cuz that not your first join on the server
send "&aWelcome %player% to &eBoxRavenz &ahope you have fun! &9and dont forget to join our discord with /discord, and read the rules with /rules!!!" to player
````
yeah
thats the skript on the first join
k
and make a temporary command
send "&aWelcome %player% to &eBoxRavenz &ahope you have fun! &9and dont forget to join our discord with /discord, and read the rules with /rules!!!" to player
set {spawn2perm.%player%} to 0```
like this?
like
command /temp:
trigger:
set {spawn2perm.%player%} to 0
then execute the /temp command, it will set ur variable to 0 for you
so they have to run it first?
nop
they just have to join
but wont work for u cause u already joined ur server
so it wont set your variable to 0
perfect
there are many other people that have joined the server without this
what abt on join?
you can but you need to do a if condition like this :
if {spawn2perm.%player%} is 1:
pass
else:
set {spawn2perm.%player%} to 0
then u disconnect reconnect
and should be good
but whats aliases
wym ?
i reloaded all and it said reloading aliases and skript and yea
but wait if someone who has /spawn2 and leaves and rejoin dont they not have it
nop they'll have it
cuz of this
if they already have it we dont set the value to 0
les go ur the best🔥🔥🔥
work ?
yess
nice !
but the server closes everytime
u use the neth star ?
yea
lemme read the code upper
permission: op
permission message: "&cYou don't have access to use this!"
trigger:
if {nstar} is set:
send "&cYou have already made a location!"
else:
set {nstar} to player's location
send "&aSuccessfully set Nether Star location to your current location."
on load:
# This variable stores the location for /spawn2.
# Replace X, Y, Z, and WORLD with the actual coordinates and world name for the spawn2 location.
set {spawn2_location} to location (200.500, 70, 200.500) in world "world"
on right click holding a nether star:
if player is holding a nether star named "&eGalaxy Portal":
if {nstar} is set:
teleport player to {nstar}
send "&aUse &e/spawn &ato teleport to the original place and use &e/spawn2 &ato teleport to the place you are in now."
remove 1 nether star named "&eGalaxy Portal" from player's inventory
set {spawn2perm.%player%} to 1
else:
send "&cThe Galaxy Portal location hasn't been set yet."
command /spawn2:
trigger:
if {spawn2perm.%player%} is 1:
teleport player to {spawn2_location}
send "&aYou have teleported to spawn2!"
else:
send "&cYou havent unlocked that yet!"
command /delnstarloc:
permission: op
permission message: "&cYou don't have access to use this!"
trigger:
if {nstar} is set:
delete {nstar}
send "&aSuccessfully deleted Nether Star location."
else:
send "&cYou haven't set a location yet!"```
heres the whole skript
can i show the console?
mmh
k
try to put somes "wait 1 tick" on your code
it's cuz u make the server execute too much action per ticks
as i understand
how many seconds is 20 tick
lemme place them
permission: op
permission message: "&cYou don't have access to use this!"
trigger:
if {nstar} is set:
send "&cYou have already made a location!"
else:
set {nstar} to player's location
send "&aSuccessfully set Nether Star location to your current location."
on load:
# This variable stores the location for /spawn2.
# Replace X, Y, Z, and WORLD with the actual coordinates and world name for the spawn2 location.
set {spawn2_location} to location (200.500, 70, 200.500) in world "world"
on right click holding a nether star:
if player is holding a nether star named "&eGalaxy Portal":
if {nstar} is set:
teleport player to {nstar}
wait 1 tick
send "&aUse &e/spawn &ato teleport to the original place and use &e/spawn2 &ato teleport to the place you are in now."
remove 1 nether star named "&eGalaxy Portal" from player's inventory
wait 1 tick
set {spawn2perm.%player%} to 1
else:
send "&cThe Galaxy Portal location hasn't been set yet."
command /spawn2:
trigger:
if {spawn2perm.%player%} is 1:
teleport player to {spawn2_location}
send "&aYou have teleported to spawn2!"
else:
send "&cYou havent unlocked that yet!"
command /delnstarloc:
permission: op
permission message: "&cYou don't have access to use this!"
trigger:
if {nstar} is set:
delete {nstar}
send "&aSuccessfully deleted Nether Star location."
else:
send "&cYou haven't set a location yet!"```
try this
ayo
u have a skript attached to the crates systems ?
no?
try to do the nether star thing to see if that it
ye
k
imma test now
less goo
imma message u in dm if it fail again
but now it works awesome
and crates still crash ?
thank you so much for your help
np !
weird but nice
tysm for ur help
ur welcome !