Skocz do zawartości
  • 0

Dość nietypowy błąd


Zasepamen
 Udostępnij

Pytanie

Witam

Napisałem oto taki skrypt:

on connect:	if name of player contains "`" or "~":		log "Gracz [%player%] o adresie ip [%IP of player%] o uuid [%UUID of player%]" to "logi_zakazanych.txt"		kick player due to "Niedozwolony nick"		stop

Gdy weszłem na serwer z nikiem który zawierał "~"

To nie zkikowało mnie ale wywaliło błąd w konsoli.

[23:17:20] [User Authenticator #4/INFO]: UUID of player edd! is 4d3b60dc-c5f9-32bf-bc3e-7458d6c897c3[23:17:20] [Server thread/ERROR]: #!#![23:17:20] [Server thread/ERROR]: #!#! [Skript] Severe Error:[23:17:20] [Server thread/ERROR]: #!#![23:17:20] [Server thread/ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.[23:17:20] [Server thread/ERROR]: #!#! If you're a server admin however please go toZarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! [Server thread/ERROR]: #!#! and check whether this error has already been reported.[23:17:20] [Server thread/ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,[23:17:20] [Server thread/ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.[23:17:20] [Server thread/ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.[23:17:20] [Server thread/ERROR]: #!#! By following this guide fixing the error should be easy and done fast.[23:17:20] [Server thread/ERROR]: #!#![23:17:20] [Server thread/ERROR]: #!#! Stack trace:[23:17:20] [Server thread/ERROR]: #!#! java.lang.NullPointerException[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.expressions.ExprIP.convert(ExprIP.java:52)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.expressions.ExprIP.convert(ExprIP.java:1)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.registrations.Converters.convert(Converters.java:302)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.registrations.Converters.convertUnsafe(Converters.java:294)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:105)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.expressions.base.SimplePropertyExpression.get(SimplePropertyExpression.java:56)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:76)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:101)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.VariableString.toString(VariableString.java:390)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.VariableString.getArray(VariableString.java:495)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.VariableString.getArray(VariableString.java:1)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.effects.EffLog.execute(EffLog.java:93)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:50)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:149)[23:17:20] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:109)[23:17:20] [Server thread/ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)[23:17:20] [Server thread/ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)[23:17:20] [Server thread/ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)[23:17:20] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_8_R1.PlayerList.attemptLogin(PlayerList.java:414)[23:17:20] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_8_R1.LoginListener.b(LoginListener.java:97)[23:17:20] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_8_R1.LoginListener.c(LoginListener.java:41)[23:17:20] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_8_R1.NetworkManager.a(NetworkManager.java:159)[23:17:20] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_8_R1.ServerConnection.c(ServerConnection.java:82)[23:17:20] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:785)[23:17:20] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316)[23:17:20] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623)[23:17:20] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526)[23:17:20] [Server thread/ERROR]: #!#! at java.lang.Thread.run(Thread.java:745)[23:17:20] [Server thread/ERROR]: #!#![23:17:20] [Server thread/ERROR]: #!#! Version Information:[23:17:20] [Server thread/ERROR]: #!#! Skript: 2.1.2[23:17:20] [Server thread/ERROR]: #!#! Bukkit: 1.8-R0.1-SNAPSHOT[23:17:20] [Server thread/ERROR]: #!#! Minecraft: 1.8[23:17:20] [Server thread/ERROR]: #!#! Java: 1.7.0_79[23:17:20] [Server thread/ERROR]: #!#![23:17:20] [Server thread/ERROR]: #!#! Running CraftBukkit: false[23:17:20] [Server thread/ERROR]: #!#![23:17:20] [Server thread/ERROR]: #!#! Current node: null[23:17:20] [Server thread/ERROR]: #!#! Current item: log "Gracz [%the player%] o adresie ip [%the IP address of the player%] o uuid [%the UUID of the player%]" to "logi_zakazanych.txt"[23:17:20] [Server thread/ERROR]: #!#![23:17:20] [Server thread/ERROR]: #!#! Thread: Server thread[23:17:20] [Server thread/ERROR]: #!#![23:17:20] [Server thread/ERROR]: #!#! End of Error.[23:17:20] [Server thread/ERROR]: #!#![23:17:20] [Server thread/INFO]: edd![/31.42.10.217:52997] logged in with entity id 170399 at ([world] -4.5, 92.0, -8.5)

Ale gdy wejdę z normalnym nikiem nie zawierającym "~" lub "`" to wszystko działa.

Co może być przyczyną? Chciałem zabezpieczyć mój serwer przed nikami zawierającymi takie znaki bo słyszałem że wtedy można łatwiej go zkraszować

Edytowane przez Zasepamen
Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Gość DonFallingCookie

A usuń

log "Gracz [%player%] o adresie ip [%IP of player%] o uuid [%UUID of player%]" to "logi_zakazanych.txt"

i sprawdź czy będzie działać xd

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...