Civcraft / CBanManagement

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Temp/Timed bans #2

Closed suirad closed 9 years ago

suirad commented 9 years ago

There is already a temp ban flag, is it desired for this to automatically track time info for temp/timed bans and automatically unban, or will the other plugins doing those bans do that? I.E. AFKRPG

@programmerdan @rourke750

rourke750 commented 9 years ago

@programmerdan going to let you decide. I think the only real case would be for afkpg which I'm not sure how you would take the direction for it.

suirad commented 9 years ago

Well the other use case i had in mind, was normal temporary bans done by @ttk2 that expire after a specific time period. These bans would expire and be removed from the db with no further action; if desired.

erocs commented 9 years ago

I don't believe the admins have ever issued a timed ban via MC. Plugins have, but for administrative bans of any form the players have to contact the admins to get them lifted, even if an end date was specified.

Edit: But yes, plugins would find this a necessity.

suirad commented 9 years ago

I'll wait to hear back from @programmerdan before i do this. @ttk2 feel free to chime in too.

ProgrammerDan commented 9 years ago

I'm a little light on the background here, but looks like we're re-implementing ban management to be cross-shard aware?

In that case, absolutely timed bans are necessary. I think AFKPGC will be the only consumer at the moment, but future plugins could benefit.

In terms of architecture, will you leave it up to the calling plugin to issue the "kick", or will you include that here as well?

suirad commented 9 years ago

I will be including the kick. Since the ban message will be set, the kick itself is a simple addition.

ProgrammerDan commented 9 years ago

Perfect, that's great. I'd love to be able to issue a single Ban call and for the plugin to literally stop caring after that point, would be very nice.

Thanks for working on this.

suirad commented 9 years ago

Added the auto-kick in this commit. Should temp bans really need their own banlevel, or should they just be considered any ban that has an expiry date, and just keep the low/med/high levels?

suirad commented 9 years ago

Completed