Jump to content

problem with AuthMe script


lisacrystal

Recommended Posts

So, I have a problem with Script plugin (AuthMe script). I`ve tooked ready-for-use script from bukkit and it hasn`t got any problems as I saw on YouTube videos of other players who updated it too. Me too, but the only one problem appears on the screenshot below. It was "on any move", but it hadn`t work, then I changed to "on any movement", "on step" etc..... maybe you know how I can solve this problem? I want make like players could`t move before they hadn`t register or logged on the server. There is a little part of .sk file:


command /authme [<text>]:
    permission: authme.admin
    trigger:
        if arg 1 is "setspawn":
            set {login.spawn} to player's location
            message "{@pref} Вы успешно поставили точку спавна!"
        else:
            message "{@pref} Пожалуйста, введите &e/authme setspawn!"

on walk:
    if {login.%player%} is set:
        if {login.spawn} is set:
            teleport player to {login.spawn}
        else:
            message "{@pref} Ошибка &cAuthMe&7, пожалуйста, сообщите &cАдмину&7!"

on chat:
    if {login.%player%} is set:
        cancel event
 

2020-05-17_00-07-10.png

Link to comment
Share on other sites

On walk isn't an event. You can use the vanilla event 'on move on' or use the skQuery event 'on any move'.

Support  July 29, 2020 → November 3, 2020

► Helper November 3, 2020 → February 22, 2021

► Moderator February 22, 2021 → May 17, 2021

 I might not always respond to forum dms, however I am always contactable on discord (mig#0069)

Screen Shot 2020-03-20 at 5.23.33 pm.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...