#Bans system
1 messages · Page 1 of 1 (latest)
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
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?
Yep, should be pretty easy though
Also what does the new date time get retrieved of
Just / 1000, / 60, / 60, / 24, ...
Is is the device running the plugin or an online service or something?
Uh you are right
Frankly not sure, shouldn't matter as you're not specifying time but rather duration
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 ^
@pseudo coyote thanks i think i know what im doing now i really appreciate your help