Open Hockeyfan360 opened 9 years ago
Really the best way to handle this would be to move the ranks out of the players table and into their own table. Then have the player name, UUID, Rank, Last login and if they are enabled (TRUE/FALSE). This way the players table is cleaner and all ranks are handled in their own area.
Camzie and myself could work on this then. It would take quite a while.
Ooh, I like that idea, could be complex to make, but I shouldn't have too much trouble, I'm kind of excited to start work on this one!
Conciser the change of the table system along with the suspensions part of the 1.1 release :)
http://gyazo.com/8f4a8fd6484806e84345bc998cd77ad8 - That is when you remove a player.
http://gyazo.com/5e88bfcd3bbd5365175c99a9c996603d - That is when you add a player.
Currently, there is no way to recover your lost rank after being removed, other than manually entering it into the database. It may be a good idea to add a suspended column in the
players
table. This could probably be easily implemented by adding a line like this in the rank class:if (ICM_SqlHandler.isSuspended()) //Not going to be hard to make that method. { return Rank.Op; }
And then modifying the saconfig thing to set suspended to true instead of setting their rank as a whole.
When you get added to saconfig, if you are suspended, then the suspended part gets set to false and nothing else happens.