Ankoki / SkJade

A Skript Addon with miscellaneous syntax to make skripting easier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

On Async PreLogin Event - Expressions and Effects

aircacti opened this issue · comments

Hello. I have seen that you provide "On Async PreLogin" event that works as Java AsyncPlayerPreLoginEvent, but i haven't seen any way to deal with event-player in documentation available in skunity.

What kind of effects and expressions does offer that event? Is there any way to do something like
event.disallow(AsyncPlayerPreLoginEvent.Result.KICK_BANNED, "You cant join"); by using your SkJade addon?

Thanks in advance.

commented

Hi! You cannot add a custom string to the end, however you can set event-login-result to any of the following:
"kick other"
"allowed"
"kick banned"
"kick full"
"kick whitelist"
Do note they must be strings :)

Thank you very much