Solved "Cancel join event"

  • 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 comminuty!

    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!

Status
Not open for further replies.

PuchiGFX

Member
Jan 26, 2017
246
5
18
Is there anyway to cancel the join event?
because a i have this problem:
https://hastebin.com/ebihocekot.md
minecraft server version: 1.8.8
skript version: 2.2 Fixes V8b
skript author: Bensku
addons using: Skquery, mundosk, wildskript,skellet, skrayfall, randomsk and extrassk
 
You must let join the player, then you can kick him.

code_language.skript:
on join:
 if {nojoin} is true;
  kick player because "TEST"
  broadcast "TEST"
 
You must let join the player, then you can kick him.

code_language.skript:
on join:
 if {nojoin} is true;
  kick player because "TEST"
  broadcast "TEST"
i did that without the broadcast xd
[doublepost=1485609976,1485609706][/doublepost]
Use
Code:
on connect
instead of the join event. Don't cancel it, use
Code:
kick the player due to "You can't join"
k, i'll trying
 
  • Like
Reactions: HiqqhFive
Remember that 'on join' event is called after the player joins your server. So he will basically join (the join message will appear if you did not disable it), and then he will be kicked.

'on connect' will kick the player before he joins, so no message will appear.
 
  • Like
Reactions: HiqqhFive
Remember that 'on join' event is called after the player joins your server. So he will basically join (the join message will appear if you did not disable it), and then he will be kicked.

'on connect' will kick the player before he joins, so no message will appear.
Yes, you're right.
I'm sorry.
 
Status
Not open for further replies.