Solved Walking 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.

Lupe

Member
Jun 24, 2017
15
0
0
23
Hi, how I can make something when player is walking on ANY BLOCK? It worked in older versions.. I really need this, but on any movement is bad for use here...I want something like this
code_language.skript:
on walking on any block:
 if {speed.%player%} is larger than 6:
  kick the player due to "SPeedhack"
 else:
  add 1 to {speed.%player%}
  wait 1 second
  set {speed.%player%} to 0
I don´t want to write there all blocks in minecraft...
 
I am not sure, I am not on pc now, But i think "on walk" didn't work
[doublepost=1512401971,1512338621][/doublepost]Not working...
 
Any movement will cause lags and it CANT detect speedhack! Is here different opportunity?
[doublepost=1512856539,1512503422][/doublepost]Help please!!!
 
code_language.skript:
on join:
    while player is online:
        if distance between player and {location::%player%} is greater than 10:
           send "you are moving to fast"
        set {location::%player%} to player's location
        wait 1 second
i didnt test this and it will probably maybe still lag
 
I found better way - use Tuske, but I have problem with load plugin.
Code:
> [23:11:06 ERROR]: Error occurred while enabling TuSKe v1.7.5 (Is it up to date?)
java.lang.NoSuchMethodError: ch.njol.skript.bukkitutil.PlayerUtils.getOnlinePlayers()Ljava/util/Collection;
at me.tuke.sktuke.listeners.OnlineStatusCheck.(OnlineStatusCheck.java:24) ~[?:?]
at me.tuke.sktuke.TuSKe.onEnable(TuSKe.java:71) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_144]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_144]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
I tried 10 version but same problem with all :/
 
code_language.skript:
on join:
    while player is online:
        if distance between player and {location::%player%} is greater than 10:
           send "you are moving to fast"
        set {location::%player%} to player's location
        wait 1 second
i didnt test this and it will probably maybe still lag
This won't lag with small player base. You can extend the timer if you want less lag overall.
 
I found better way - use Tuske, but I have problem with load plugin.
Code:
> [23:11:06 ERROR]: Error occurred while enabling TuSKe v1.7.5 (Is it up to date?)
java.lang.NoSuchMethodError: ch.njol.skript.bukkitutil.PlayerUtils.getOnlinePlayers()Ljava/util/Collection;
at me.tuke.sktuke.listeners.OnlineStatusCheck.(OnlineStatusCheck.java:24) ~[?:?]
at me.tuke.sktuke.TuSKe.onEnable(TuSKe.java:71) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.Bukkit.reload(Bukkit.java:535) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-db6de12-18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_144]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_144]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
I tried 10 version but same problem with all :/
whats your skript version? the latest tuske is v1.8.2. The problem is most likely a version issue since your server is 1.8 which is pretty old at this point
 
I am using spigot version 1.8.8 and Skript Version 2.1.2
Author od TuSke said that Tuske is working on 1.8 too...

And your Skript is not what I want.. there is not any detect of move.... and IT DROPPED MY SERVER
 
Last edited:
I tried 10 version and nothing is working....
You didn´t help me...
Ok i thought you meant you tried 10 versions of tuske, you might just need to update your server or idk whats wrong then
 
Why I could update server when author Said TuSke is working on 1.8?! Okay, I am going to write author when you can't help me.
 
Use Bensku's dev25. That's the latest (and last) workable 1.8 version.
 
Omg, thanks @White, its working <3
I am using version of Tuske 1.5.3, all is okay, thanks!
I used "on player starts walk" for detect speedhack :emoji_slight_smile:
 
Last edited:
Status
Not open for further replies.