Paste your RS2LoginProtocolDecoder class.
|
Im not sure if this is a client or server sided problem. But basically if im logged in on one client, and then attempt to log into the same account on another client, it lets me log in, but only to a black screen. You can see the chatbox and inventory ect, but it's a black screen. And It shows my character logging in and out on the other client.
Paste your RS2LoginProtocolDecoder class.
Without checking the class, I assume you don't have a condition to check if the player is already logged in. You can call the isplayeron method from your player handler class to check if the person is already logged in, and if so returncode that will show you are already logged in.
You can also store all logins using sql into a table, and like so insert a condition, if the playername exists in the table then deny login. You would then have to remove the playersname from the table when they logout/dc (in destruct method in client), which you can do so by calling a method that will query the database and remove the players name from the table if exists. Also you can do the same in your update command, so during shutdown of server itll clear the full table, like so using a method that will truncate the table that stores the logins.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |