#Bans system

1 messages · Page 1 of 1 (latest)

thorny flint
#

:D

#

It was "bans system :)" but dickord v stooopid

#

Bans system

pseudo coyote
#

Realistically, MongoDB is not required. You can just create a map of Player -> Ban object, each ban object should have an expiration timestamp gotten from new Date().getTime() + (amount of milliseconds of ban) and comparing the current getTime to that of the expiration and letting players in based on that

thorny flint
#

I understand

#

I think that method can improve my roles/ranks system too

#

so basically i have to write a util to convert days / minutes / months etc.. to milliseconds

#

Am i correct?

pseudo coyote
#

Yep, should be pretty easy though

thorny flint
#

Also what does the new date time get retrieved of

pseudo coyote
#

Just / 1000, / 60, / 60, / 24, ...

thorny flint
#

Is is the device running the plugin or an online service or something?

thorny flint
pseudo coyote
thorny flint
#

I mean, i don't want to break stuff up especially the fact that alot of people use machines with diff time zones

#

I think a callback API will be a little slower but a good improvement

#

Hopefully you agree with me ^

thorny flint
#

@pseudo coyote thanks i think i know what im doing now i really appreciate your help