Inactive [SEC] PIP v1.0 - one Player per IP [1.2.5R4.0]

Discussion in 'Inactive/Unsupported Plugins' started by gkovalecyn, Feb 22, 2012.

  1. Offline

    gkovalecyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sorry, that was my mistake, it should not be giving those errors.
  2. Offline

    mike2033

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    Hi,

    sorry. Yesterday Bukkit.org went crazy. Everytime I tried to login it showed me 502 error.

    Okay. I have tried it with MySQL. Take a look, please:

    Code:
    21:30:23 [INFO] [Player IP] Enabling Player IP v0.5a
    21:30:23 [INFO] PIP: Trying to connect to MySQL
    [B]21:30:23 [INFO] PIP: Successful connection to MySQL![/B]
    21:30:23 [FATAL] Line from file returned nothing!
    Where it should have returned: Test 1
    21:30:23 [FATAL] Line from file returned nothing!
    Where it should have returned: Test 2
    21:30:23 [FATAL] Line from file returned nothing!
    Where it should have returned: Test 3
    21:30:23 [FATAL] Line from file returned nothing!
    Where it should have returned: Test 4
    21:30:23 [FATAL] Line from file returned nothing!
    Where it should have returned: Test 5
    21:30:23 [INFO] PIP has been enabled!
     
    [B]21:41:28 [INFO] Maik [/127.0.0.1:56641] logged in with entity id 2969 at ([world[/B]
    [B]] -218.86665138031634, 64.0, -245.0574672132788)[/B]
    [B]21:41:28 [INFO] An IP was created/added for player: Maik[/B]
    21:42:15 [INFO] Maik lost connection: disconnect.quitting
    21:42:15 [INFO] Connection reset
    [B]21:42:23 [INFO] Maik [/IP1:56704] logged in with entity id 3080 at ([[/B]
    [B]world] -218.86665138031634, 64.0, -245.0574672132788)[/B]
    [B]21:42:23 [SEVERE] Data truncation: Truncated incorrect DOUBLE value: '/192.168.1[/B]
    [B]78.24'[/B]
    [B]21:42:23 [INFO] An IP was created/added for player: Maik[/B]
    21:47:07 [INFO] Connection reset
    21:47:07 [INFO] Maik lost connection: disconnect.endOfStream
    [B]21:48:02 [INFO] Maik [/IP2:56814] logged in with entity id 3757 at ([world[/B]
    [B]] -220.46264013964856, 63.0, -248.71873887850384)[/B]
    21:50:09 [INFO] Connection reset
    21:50:09 [INFO] Maik lost connection: disconnect.endOfStream

    This post has been edited 1 time. It was last edited by mike2033 Apr 16, 2012.
  3. Offline

    gkovalecyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I Thanks for posting that, it should be fixed now.
    I to fix it, in your MySQL console just type this:
    ALTER TALBE Players MODIFY IP(255);
  4. Offline

    mike2033

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi,

    ok. I have found the TABLE and entered your text. It says this ( you mean TABLE instead TALBE or ? )

    Code:
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(255)' at line 1
    Another problem: I deleted the table "players" and PIP created a new one. When I logged in first time with IP1 it logged / added the IP to the database. When I login with another IP ( IP2 ) it shows me an error and don't add the IP to the database:

    Code:
    13:37:33 [INFO] Done (2.187s)! For help, type "help" or "?"
    13:38:24 [INFO] Maik [/IP1:50155] logged in with entity id 3262 at ([wor
    ld] -223.50090145379025, 63.0, -246.28381427729758)
    13:38:24 [INFO] An IP was created/added for player: Maik
    13:38:47 [INFO] Maik lost connection: disconnect.quitting
    13:38:47 [INFO] Connection reset
    13:38:53 [INFO] Maik [/IP2(anotherIP):50186] logged in with entity id 3341 at ([world
    ] -222.701361213326, 63.0, -255.31454494353045)
    13:38:53 [SEVERE] Data truncation: Truncated incorrect DOUBLE value: '/IP2'
    13:38:53 [INFO] An IP was created/added for player: Maik
    13:39:59 [INFO] Maik lost connection: disconnect.endOfStream
  5. Offline

    gkovalecyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah, I meant table instead of talbe.
    About the error it should be fixed now.
  6. Offline

    mike2033

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hm. It says, the IP has been logged but it still let me connect with more than one IP :(
  7. Offline

    gkovalecyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I added more debug messages and it should create an log now, and are you trying to enter with different IPs and with different names?
  8. Offline

    mike2033

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi,

    thanks for your reply... I'm using different IP's ( it even says that ). Under \Players\Maik.yml it says, there are 2 different IPs. Debug says:

    Code:
    (21/49/06)PIPDebug: Started log!
    PIPDebug: IP did not exist!, trying to create.
    PIPDebug: IP did not exist!, trying to create.
    And the console: it seems like he can't read it. That was without MySQL. I try it with now

    Code:
    21:49:06 [INFO] Maik [/THIS_IS_IP_1:52843] logged in with entity id 177 at ([w
    orld] -219.5312119221747, 63.0, -256.5091853156497)
    21:49:06 [INFO] PIPDebug: IP did not exist!, trying to create.
    21:49:06 [INFO] PIPDebug: File for player: Maik was found!
    21:49:06 [INFO] An IP was created/added for player: Maik
     
    21:49:29 [INFO] Maik lost connection: disconnect.quitting
    21:49:29 [INFO] Connection reset
     
    21:49:36 [INFO] Maik [/THIS_IS_ANOTHER_IP:52854] logged in with entity id 243 at ([w
    orld] -219.5312119221747, 63.0, -256.5091853156497)
     
    21:49:36 [INFO] PIPDebug: IP did not exist!, trying to create.
    21:49:36 [INFO] PIPDebug: File for player: Maik was found!
    21:49:36 [INFO] An IP was created/added for player: Maik
     
    21:49:57 [INFO] Connection reset
    21:49:57 [INFO] Maik lost connection: disconnect.endOfStream
    EDIT: MySQL connection was sucessfully. But there's still a problem:

    Debug:

    Code:
    (21/56/26)PIPDebug: Started log!PIPDebug: IP did not exist!, trying to create.
    PIPDebug: Trying to compare:/IP_1and/IP_2
    PIPDebug: Current amount of IPs: 1
    PIPDebug: IPs and names matched, allowing!
    PIPDebug: IPs and name were equal!
    PIPDebug: IP did not exist!, trying to create.
    
    And the console:

    Code:
    21:56:26 [INFO] An IP was created/added for player: Maik
    21:58:07 [INFO] Connection reset
     
    21:58:07 [INFO] Maik lost connection: disconnect.endOfStream
    21:58:17 [INFO] Maik [/IP1:52932] logged in with entity id 470 at ([w
    orld] -219.5312119221747, 63.0, -256.5091853156497)
     
    21:58:17 [INFO] PIPDebug: IPs and names matched, allowing!
    21:58:17 [INFO] PIPDebug: IPs and name were equal!
    21:58:32 [INFO] Maik lost connection: disconnect.quitting
    21:58:32 [INFO] Connection reset
     
    21:58:39 [INFO] Maik [/IP2:52943] logged in with entity id 526 at ([w
    orld] -219.5312119221747, 63.0, -256.5091853156497)
    21:58:39 [INFO] PIPDebug: IP did not exist!, trying to create.
    21:58:39 [INFO] An IP was created/added for player: Maik
    21:59:00 [INFO] Maik lost connection: disconnect.quitting
    21:59:00 [INFO] Connection reset
    Do you have an messanger or so? :)

    This post has been edited 5 times. It was last edited by mike2033 Apr 21, 2012.
  9. Offline

    gkovalecyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It should be fixed now.
  10. Offline

    mike2033

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Woow, cool. It is! Thanks a lot for your help :) Keep up
  11. Offline

    PhoenixCF

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Gkovalechyn Phoenix aqui, não tem nada haver com o plugin quero dizer que formatei o PC, teria como vc liberar a espaço na nossa rede hamachi, vlw
  12. Offline

    Quackz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Will there be a feature in the future that allows different players to connect from the same IP? Quite a few people in my server share connections, and usually, one has to use a proxy.
  13. Offline

    Royalgamer06

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    1) Can you add an exception node for e.g. Admins? (Because I need an non-admin test account.)
    2) Can you add support for Authme? Because I have this error log when a player tries to login with another name.
    3) Your plugin is awesome and handy!
  14. Offline

    gkovalecyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    (1)Added a "bypass" node: pip.bypass
    (2)I tried several things to fix that, it still gives the error but both plugins still work. I guess that until there is an API for me to work with, the error will continue.
  15. Offline

    Royalgamer06

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  16. Offline

    lifedistroy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    well considering none of the commands work and it it seeming doesnt work at all (unless i have to manually enter IP's and usernames) it didnt pick up any of my friends usernames and IPS. or it did but didnt save them. I tried giving them all the permission nodes for this plugin too. nothing.

    when you enter a command a error messoge spews out. here it is.
    2012-05-19 12:44:32 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pip' in plugin Player IP v0.6a

    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
    at me.gkovalechyn.PIP.PIPCE.onCommand(PIPCE.java:45)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 12 more
  17. Offline

    Royalgamer06

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    works for me?
  18. Offline

    Royalgamer06

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Plz fix this, I think it's a conflict with Authme":
    http://pastebin.com/enHRM5Y4

    Maybe you can merge Authme and Player IP together to one plugin?

    Thnx
    Roy

    This post has been edited 1 time. It was last edited by Royalgamer06 Jun 21, 2012.
  19. Offline

    gkovalecyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'll try
  20. Offline

    winter4w

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can you make it so you can set it to only one ip for that player like

    /pip set winter4w (ip) so then the only person that I set that ip to will be able to log on that account because I only want my staff to login with one ip so they wont get hacked I dont need it for all of my users
  21. Offline

    gkovalecyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The "set" command already exists, it is called "/pip edit". Use "/pip list <name>" to see the IP of that player.
  22. Offline

    winter4w

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Tell me if I am wrong so this plugin only sets one ip to anyone who joins right
  23. Offline

    gkovalecyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It is the default configuration to only allow only 1 IP per player.

    This post has been edited 1 time. It was last edited by gkovalecyn Jun 30, 2012.
  24. Offline

    winter4w

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  25. Offline

    firefly33

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Help please my plugin doesn't work, it doesn't create ips and when I try with the command "pip edit" this message appears : "An iternal error occured while attempting to perform this command"
    And in my server log:

    [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pip' in plugin Player IP v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NumberFormatException: For input string: "192.168.1.1"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:458)
    at java.lang.Integer.parseInt(Integer.java:499)
    at me.gkovalechyn.PIP.commands.Edit.edit(Edit.java:22)
    at me.gkovalechyn.PIP.PIPCE.onCommand(PIPCE.java:58)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 12 more


    Sorry for my bad english I'm french
  26. Offline

    gkovalecyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I appears that you are missing the index, the right command sytax is: /pip edit <player> <index> <new IP>

    This post has been edited 1 time. It was last edited by gkovalecyn Jul 16, 2012.
  27. Offline

    IsaiahRobichaud

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    White list IPs to 1 user and if you want to add another user to the IP or to the username maybe use a command to add a player to an IP or add an IP to a player? This would be nice.
  28. Offline

    gkovalecyn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Added a command to add an IP to a player, it is /pip add <player> <IP>, I will update the source and the regular download if you want to test it, download the .jar only, permission: -PIP.add
  29. Offline

    IsaiahRobichaud

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks :)
  30. Offline

    the_NIXON88

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nice Plugin!

Share This Page