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

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

  1. Offline

    gkovalecyn

    It should be fixed now, i have no idea what was causing it but I tested it and it should be working.
     
  2. Offline

    jenks1999

    It is still not working, its reading a driver that doesnt exist. Please look into this......[SEVERE] No suitable driver found for com.mysql.jdbc.Driver
     
  3. Offline

    mike2033

    Hi,

    it almost worked for me. First time it logged IP's, but didn't kick players with more than one IP's ( my fault - forgot permissions ) Now I tried to update it. Error while starting :


    Code:
    18:53:22 [FATAL] Error occurred while enabling Player IP v0.5a (Is it up
    to date?)
    java.lang.ArrayIndexOutOfBoundsException: 1
            at me.gkovalechyn.PIP.Debug.testCreation(Debug.java:102)
            at me.gkovalechyn.PIP.PlayerIP.onEnable(PlayerIP.java:52)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:336)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:381)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232
    )
            at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:371)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:358)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    I'm using the latest version. May any help?
     
  4. Offline

    gkovalecyn

    Just set Debug to false, it should work.

    Could you try moving the lib folder to your main folder? where the craftbukkit jar is located.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  5. Offline

    Pr07o7yp3

    [SEVERE] You have an error in your SQL syntax; check the manual that co
    rresponds to your MySQL server version for the right syntax to use near ''Player
    s' ('Player' VARCHAR(16) NOT NULL,'IP' VARCHAR(12) NOT NULL)' at line 1
     
  6. Offline

    jenks1999

    lib folder is already in main minecraft folder location.. and the mysql connect jar is inside. i have mcmmo and many other plugins already connected to mysql database, it is a specific issue with the plugin.
     
  7. Offline

    mike2033

    Hi,

    cool! It works now. But it still doesn't log the IP's from every player. I logged in as Administrator, it logged my IP. I tried to connect from another IP. It even added the IP but it let me connect anyway... May be it's because my group got all permission ( even the " can have more IPs " permission ) . But in the config it set to max 1 IP. Even with permission...
     
  8. Offline

    gkovalecyn

    That is really weird, I tried removing the lib folder and it worked anyway. Could you try downloading the latest, it might be that the version that you have isn't the same as the one I am testing.

    I advise giving only one permission, the PIP.use or just the PIP.allowMore but even with both of them it should be working since it checks for the allowMore first.
    Could you tell me witch permission plugin are you using? that could be what is causing the problem.

    It is fixed in the latest update.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  9. Offline

    nhoclesnar

    Don't ever abandon this plugin. It's awesome.
     
  10. Offline

    mike2033

    I'm using Essentials. Could you tell me, why it only logs IP's from Admins / OPs
     
  11. Offline

    Pr07o7yp3

    Why when a player join in with another name he got kick but his name still persist in the game?
     
  12. Offline

    nhoclesnar

    The first name, yes.
     
  13. Offline

    gkovalecyn

    Because you must have the permission or be OP. To use this.
     
  14. Offline

    mike2033

    Hi,

    thanks. It's working now with other groups but it still does let players have more then one IP's. I tried to login trough localhost ( 127.... ) it logged the IP and than I tried to login with another IP and it let me login =(
     
  15. Offline

    gkovalecyn

    Sorry for replying this late. Is it creating the files? Is it adding to the files this IP's or just saying that it was added? Could you try deleting the entire plugin folder? so that it could write the IPs again again.
     
  16. Offline

    mike2033

    Hi,

    no problem... I have tried to delete the folder, but it still got the same problem -> doesn't kick them. It's even adding the IP's.
     
  17. Offline

    gkovalecyn

    Well I tried with the latest version/download/files/(...) and it seems to be working. I don't know if you'll be able to tell me, anyhow, is it being able to read the files?
     
  18. Offline

    mike2033

    Hm, sorry. I don't really understand what you mean :/
     
  19. Offline

    gkovalecyn

    If it is being able o read a line from the player file, the one created in the "Players" folder.
     
  20. Offline

    mike2033

    Oh. Hm. I'm not sure.. I dont think its important that I'm computer administrator.

    Is there a way to check if can read / have read permissions?
     
  21. Offline

    gkovalecyn

    I added a warning to the debug option witch should tell you when the line read was nothing.
     
  22. Offline

    gkovalecyn

    Sorry, that was my mistake, it should not be giving those errors.
     
  23. Offline

    mike2033


    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
     
  24. Offline

    gkovalecyn

    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);
     
  25. Offline

    mike2033

    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
     
  26. Offline

    gkovalecyn

    Yeah, I meant table instead of talbe.
    About the error it should be fixed now.
     
  27. Offline

    mike2033

    Hm. It says, the IP has been logged but it still let me connect with more than one IP :(
     
  28. Offline

    gkovalecyn

    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?
     
  29. Offline

    mike2033

    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? :)
     
  30. Offline

    gkovalecyn

    It should be fixed now.
     

Share This Page