Good evening, dear community 
i would like to make a skript, like the Plugin PerWorldTablist.
Example:
Player A is in the World "Spawn"
Player B is in "world":
Player A + B can't see each other in the tab
When Player B teleports in the world "Spawn", the can see each other in the Tab
I've just started some coding
But unfortunately it did not work
My skript looks like this:
Some details:
Skript Version: v2.2
Minecraft Version: 1.8.8
I'm using the following skript addons:
- MundoSK v1.7.4
- WildSkript v.8
- SkQuery v3.21.4
- SkRayFall v1.7.1
I've tried the MondoSK condition to hide a player in the Tablist
When I tried this, this was my minecraft output:
This Error occured in my console:
I hope you can help me
With kind regards
CookieLand
i would like to make a skript, like the Plugin PerWorldTablist.
Example:
Player A is in the World "Spawn"
Player B is in "world":
Player A + B can't see each other in the tab
When Player B teleports in the world "Spawn", the can see each other in the Tab
I've just started some coding
But unfortunately it did not work
My skript looks like this:
every second:
loop all players:
set {num} to number of players in loop-player's world
every second:
loop all players:
if loop-player's world is "%loop-player's world%":
if {num} is 2:
reveal loop-player to all players in loop-player's world
reveal all players in loop-player's world from loop-player
if {num} is greater than 2:
reveal loop-player to all players in loop-player's world
reveal all players in loop-player's world from loop-player
if {num} is 1:
hide loop-player from all players in loop-player's world
hide all players in loop-player's world from loop-player
loop all players:
set {num} to number of players in loop-player's world
every second:
loop all players:
if loop-player's world is "%loop-player's world%":
if {num} is 2:
reveal loop-player to all players in loop-player's world
reveal all players in loop-player's world from loop-player
if {num} is greater than 2:
reveal loop-player to all players in loop-player's world
reveal all players in loop-player's world from loop-player
if {num} is 1:
hide loop-player from all players in loop-player's world
hide all players in loop-player's world from loop-player
Some details:
Skript Version: v2.2
Minecraft Version: 1.8.8
I'm using the following skript addons:
- MundoSK v1.7.4
- WildSkript v.8
- SkQuery v3.21.4
- SkRayFall v1.7.1
I've tried the MondoSK condition to hide a player in the Tablist
code_language.skript:
(show|hide) %players% in [the] tab[list] of %players%
When I tried this, this was my minecraft output:
Code:
An internal error occured whileattempting to perform this command
This Error occured in my console:
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! [Skript] Severe Error:
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[22:07:22 ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/
[22:07:22 ERROR]: #!#! and check whether this error has already been reported.
[22:07:22 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,
[22:07:22 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[22:07:22 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[22:07:22 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! Stack trace:
[22:07:22 ERROR]: #!#! java.lang.NullPointerException
[22:07:22 ERROR]: #!#! at com.pie.tlatoani.Tablist.TabListManager.hidePlayer(TabListManager.java:184)
[22:07:22 ERROR]: #!#! at com.pie.tlatoani.Tablist.EffChangePlayerVisibility.execute(EffChangePlayerVisibility.java:25)
[22:07:22 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:54)
[22:07:22 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)
[22:07:22 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)
[22:07:22 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[22:07:22 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
[22:07:22 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
[22:07:22 ERROR]: #!#! at ch.njol.skript.command.Commands.handleCommand(Commands.java:269)
[22:07:22 ERROR]: #!#! at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:164)
[22:07:22 ERROR]: #!#! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[22:07:22 ERROR]: #!#! at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[22:07:22 ERROR]: #!#! at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[22:07:22 ERROR]: #!#! at java.lang.reflect.Method.invoke(Unknown Source)
[22:07:22 ERROR]: #!#! at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[22:07:22 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[22:07:22 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[22:07:22 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[22:07:22 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[22:07:22 ERROR]: #!#! at java.util.concurrent.FutureTask.run(Unknown Source)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[22:07:22 ERROR]: #!#! at java.lang.Thread.run(Unknown Source)
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! Version Information:
[22:07:22 ERROR]: #!#! Skript: 2.2-SNAPSHOT
[22:07:22 ERROR]: #!#! Bukkit: 1.8.8-R0.1-SNAPSHOT
[22:07:22 ERROR]: #!#! Minecraft: 1.8.8
[22:07:22 ERROR]: #!#! Java: 1.8.0_101 (Java HotSpot(TM) 64-Bit Server VM 25.101-b13)
[22:07:22 ERROR]: #!#! OS: Windows 10 amd64 10.0
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! Running CraftBukkit: false
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! Current node: null
[22:07:22 ERROR]: #!#! Current item: null
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! Thread: Server thread
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! End of Error.
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! [Skript] Severe Error:
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[22:07:22 ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/
[22:07:22 ERROR]: #!#! and check whether this error has already been reported.
[22:07:22 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,
[22:07:22 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[22:07:22 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[22:07:22 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! Stack trace:
[22:07:22 ERROR]: #!#! java.lang.NullPointerException
[22:07:22 ERROR]: #!#! at com.pie.tlatoani.Tablist.TabListManager.hidePlayer(TabListManager.java:184)
[22:07:22 ERROR]: #!#! at com.pie.tlatoani.Tablist.EffChangePlayerVisibility.execute(EffChangePlayerVisibility.java:25)
[22:07:22 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:54)
[22:07:22 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)
[22:07:22 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)
[22:07:22 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[22:07:22 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
[22:07:22 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
[22:07:22 ERROR]: #!#! at ch.njol.skript.command.Commands.handleCommand(Commands.java:269)
[22:07:22 ERROR]: #!#! at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:164)
[22:07:22 ERROR]: #!#! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[22:07:22 ERROR]: #!#! at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[22:07:22 ERROR]: #!#! at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[22:07:22 ERROR]: #!#! at java.lang.reflect.Method.invoke(Unknown Source)
[22:07:22 ERROR]: #!#! at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[22:07:22 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[22:07:22 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[22:07:22 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1154)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[22:07:22 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[22:07:22 ERROR]: #!#! at java.util.concurrent.FutureTask.run(Unknown Source)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[22:07:22 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[22:07:22 ERROR]: #!#! at java.lang.Thread.run(Unknown Source)
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! Version Information:
[22:07:22 ERROR]: #!#! Skript: 2.2-SNAPSHOT
[22:07:22 ERROR]: #!#! Bukkit: 1.8.8-R0.1-SNAPSHOT
[22:07:22 ERROR]: #!#! Minecraft: 1.8.8
[22:07:22 ERROR]: #!#! Java: 1.8.0_101 (Java HotSpot(TM) 64-Bit Server VM 25.101-b13)
[22:07:22 ERROR]: #!#! OS: Windows 10 amd64 10.0
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! Running CraftBukkit: false
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! Current node: null
[22:07:22 ERROR]: #!#! Current item: null
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! Thread: Server thread
[22:07:22 ERROR]: #!#!
[22:07:22 ERROR]: #!#! End of Error.
[22:07:22 ERROR]: #!#!
I hope you can help me
With kind regards
CookieLand