My bug or PEX bug?

Discussion in 'Plugin Development' started by Hydrosis, May 21, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Hydrosis

    Hello, I'm experiencing a little bug. When someone is banned and they try to login, they (of course) will get kicked. Once they're finally able to login, the user has no permissions. They have to relog to fix it. I've made a small plugin that will show you what I mean (https://www.dropbox.com/s/c5dbxi4h2q3t8gy/debugLogin.jar). This will prevent you from logging in every other time. Then reconnect until it says it's not an even login (it takes 2 or 3 tries). Once you login after you see the ban message, you'll notice that you have no permissions, unless you reload/restart the server.
    Please let me know if this is confusing or if I should provide anything else!
    Note: The bug will not happen if the person DOES NOT try to login while they are banned. It only happens when the server kicks (i.e. event.disallow(Result.KICK_BANNED, "Message") )them for being banned.

    P.S. I already made a post here (http://dev.bukkit.org/bukkit-plugins/permissionsex/forum/techhelp/66688-ban-relog-bug/#p1), but I posted it in this section for 2 reasons: 1) faster replies here and 2) to make sure that I'm not breaking coding conventions that are causing this.

    Here is the source code for the debugging plugin:
    http://pastebin.com/QgRd5GAa
     
  2. Can't you just do when they join you give them the rank/permissions
     
  3. Offline

    Hydrosis

    That's not what the problem is. I'm not touching the permissions at all. Whenever someone tries to login after they get kicked for being banned, the next session they try to login will prevent them from using any commands (even if they are opped).
     
  4. Offline

    RawCode

    did your server have modifyworld or commandbook installed?
     
  5. Offline

    Hydrosis

    It has essentials, but I've narrowed it down to just PEX. I ran the server with just PEX and I couldn't run any of the default server commands.
     
  6. Offline

    RawCode

    i was unable to reproduce issue, reloging baning and unbanning player not altered player's permission on clean install.
     
  7. Offline

    Hydrosis

    Strange, I must have made an error when I was debugging.
    The bug occurs when the plugin I provided, essentials, and PEX are running together. Just keep relogging until it says "ban hammer has spoken", then try running a command right after you join. I'm running on 1.7.9.

    Thanks for your help so far!
     
  8. Offline

    Hydrosis

    Actually, you don't even need to use the plugin I provided. Just ban yourself, try to join, unban yourself, then try to join again. Once you get in, it will say that you have no permission for any commands. I'm running on cb-1476 (1.7.9) with only PEX and Essentials installed.
     
  9. Offline

    Hydrosis

  10. Offline

    Necrodoom

    Ive seen this posted before, was replied its already fixed in recent PEX versions.
     
  11. Offline

    Hydrosis

    Thanks! I didn't realize I was using an older version of PEX!
     
Thread Status:
Not open for further replies.

Share This Page