Temporary Mutes and Bans

Discussion in 'Plugin Development' started by Kaapp, Jan 31, 2011.

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

    Kaapp

    Hey, I am developing a plugin that allows certain players to be able to mute, ban and kick various players. The server where I play, we find this a problem as we can only kick or ban people direct from Console as only the default group appears to be ban/kickable under the normal command. The idea of this was to bypass that for selected users, and record who banned/muted who and why. However, I have hit a problem where I can't see an efficient way of keeping a ban or mute for a set period of time, I know I could use a wait but I have heard that they can cause a lot of problems... I can also imagine it being quite a strain on the server at times if you have to do it to a lot of people at once.

    I had one idea, which was to link it to the system clock so that it checks the time when someone is banned, records it in the ban file and records the time to unban them, so say user 1 bans user 2 for 15 minutes, it will then unban them when those 15 minutes have passed. However, being only a relatively new Java programmer, I can't think how I would code this particular feature, any ideas?

    Also: If your wondering, my Ban/Mute file stores info as:
    (I can change parts of the formatting if needed.)

    Player, Banned by, Time banned(24 hour clock), Time banned for (minutes), Time unbanned, Ban Reason
    (e.g. PlayerX, Kaapp, 23:41 31/01/2011, 15, 23:56 31/01/2011, Griefing)
    A time of 0 minutes is a permanent ban.


    EDIT: Will add Github link tomorrow when I copy the source over there - Need sleep first.
     
  2. Offline

    Cmars

    Mcbans will cover the tempban part
     
  3. Offline

    KTMRipper

    Tell me when this plugin comes out! :p
     
  4. Offline

    Kaapp

    I will do :D Currently testing what I can, still no luck with temporary bans though :/

    And, @Cmars, not everyone uses MCAdmin and such like...
     
  5. Offline

    highz

    @Kaapp i can help you ;)
    I already created the plugin MuteD and iReserve
    If you use the iReserve base you can make ban's just lower the time with a timer
    Send me an PM if you are interested :)
     
Thread Status:
Not open for further replies.

Share This Page