Alderon-Games / pot-community-servers

Bug Reporting and Wiki for Community Servers
16 stars 0 forks source link

Ability to specify bans on timers #3

Closed menix1337 closed 2 years ago

menix1337 commented 3 years ago

Right now the two options you have to ban players is either: No ban, or Perma ban.

A lot of community servers tends to ban players out from their strikes - or just in the severity of the offenses; and out from that fits in a length.

What most servers would find enjoyable is to have a selectable (custom input) amount of length like

/ban (alderonid/name) (hours) (reason)

Example

/ban MENIX 2 You are now banned for two hours because bad. /banaid 055-760-405 48 You are now banned for fourty eight hours because bad.

(Reason why to split ban into 2 seperate commands, is to avoid you banning a user that potentially fakes someones alderon-id as a name or, you know whatever they now figure out - whatever to counter a mistaken ban if you get me)

So this of course means (I suppose) having the ban information have a "banStart" & "banEnd" part - i suppose having the local time set from the machine as the banStart part, and then the "hours" in advance for how long the timer now is for a remove banEnd.

Then make the server check if ban is expired or not on join, per user... you obviously are game devs, you know the drill