Error of IP of player's

  • 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.

PuchiGFX

Member
Jan 26, 2017
246
5
18
Skript Version: 2.2-Fixes-V8b
Skript Author: Bensku
Minecraft Version: 1.8.8
---
Full Code:
code_language.skript:
on connect:
    {ipa.%player%} is set
    {bip.%player's ip%} is true
    kick player due to "&cIntento de robo de cuenta."


Errors on Reload:

no one

Console Errors: (if applicable)

code_language.skript:
[19:53:13] [Server thread/ERROR]: #!#!
[19:53:13] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[19:53:13] [Server thread/ERROR]: #!#!
[19:53:13] [Server thread/ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[19:53:13] [Server thread/ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/
[19:53:13] [Server thread/ERROR]: #!#! and check whether this error has already been reported.
[19:53:13] [Server thread/ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,
[19:53:13] [Server thread/ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[19:53:13] [Server thread/ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[19:53:13] [Server thread/ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[19:53:13] [Server thread/ERROR]: #!#!
[19:53:13] [Server thread/ERROR]: #!#! Stack trace:
[19:53:13] [Server thread/ERROR]: #!#! java.lang.NullPointerException
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.ExprIP.convert(ExprIP.java:52)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.ExprIP.convert(ExprIP.java:1)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.registrations.Converters.convert(Converters.java:305)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.registrations.Converters.convertUnsafe(Converters.java:296)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:105)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.base.SimplePropertyExpression.get(SimplePropertyExpression.java:56)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:76)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:103)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.VariableString.toString(VariableString.java:371)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Variable.getRaw(Variable.java:199)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Variable.get(Variable.java:211)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Variable.getConverted(Variable.java:331)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Variable.getAll(Variable.java:534)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Variable.check(Variable.java:561)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.conditions.CondCompare.check(CondCompare.java:258)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Condition.run(Condition.java:58)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:150)
[19:53:13] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:110)
[19:53:13] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[19:53:13] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[19:53:13] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[19:53:13] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.PlayerList.attemptLogin(PlayerList.java:456)
[19:53:13] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.LoginListener.b(LoginListener.java:118)
[19:53:13] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.LoginListener.c(LoginListener.java:54)
[19:53:13] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.NetworkManager.a(NetworkManager.java:231)
[19:53:13] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.ServerConnection.c(ServerConnection.java:148)
[19:53:13] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:814)
[19:53:13] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[19:53:13] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[19:53:13] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[19:53:13] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[19:53:13] [Server thread/ERROR]: #!#!
[19:53:13] [Server thread/ERROR]: #!#! Version Information:
[19:53:13] [Server thread/ERROR]: #!#!   Skript: 2.2-Fixes-V8b
[19:53:13] [Server thread/ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[19:53:13] [Server thread/ERROR]: #!#!   Minecraft: 1.8.8
[19:53:13] [Server thread/ERROR]: #!#!   Java: 1.8.0_121 (Java HotSpot(TM) 64-Bit Server VM 25.121-b13)
[19:53:13] [Server thread/ERROR]: #!#!   OS: Linux amd64 2.6.32-openvz-042stab120.11-amd64
[19:53:13] [Server thread/ERROR]: #!#!
[19:53:13] [Server thread/ERROR]: #!#! Running CraftBukkit: false
[19:53:13] [Server thread/ERROR]: #!#!
[19:53:13] [Server thread/ERROR]: #!#! Current node: null
[19:53:13] [Server thread/ERROR]: #!#! Current item: {bip.%the IP address of the player%}(as java.lang.Object) is equal to [[boolean:true]] (comparator: null)
[19:53:13] [Server thread/ERROR]: #!#!
[19:53:13] [Server thread/ERROR]: #!#! Thread: Server thread
[19:53:13] [Server thread/ERROR]: #!#!
[19:53:13] [Server thread/ERROR]: #!#! End of Error.
[19:53:13] [Server thread/ERROR]: #!#!
ps:
I only receive this error from "on connect" event


Addons using (including versions):
I don't think, this care in this problem xd

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? No one, that's because i'm requesting help xd
 
I looked and the error and I realized something.
"java.lang.NullPointerException"
"Current item: {bip.%the IP address of the player%}(as java.lang.Object) is equal to [[boolean:true]] (comparator: null)"

I think you can't get the IP of the player before the on connect event fully happens. Bukkit, and thus Skript, may be only able to retrieve the IP after the on connect event is not cancelled.
I may be wrong, but I don't see any other possible explanations other than a wrong Skript version.
 
upload_2017-6-24_16-12-18.png

no clue what your problem



#edit

added variables and things

upload_2017-6-24_16-15-38.png
 
Status
Not open for further replies.