you create a list with "user","banuntil" if time is not > banuntil kick it or smth... else remove that user
Wait nvm, still kinda confused. If you can, would you like to maybe chat private so you can help me, if you dont have time, then I guess I'll have to find someone else.
Server::getNameBans()->addBan() https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/permission/BanList.php#L102
function addBan(string $target, string $reason = null, /DateTime $expires = null, string $source = null);
@DiamondGamer30 try ModBanSystem https://github.com/BajanVlogs/ModBanSystem/tree/master/ /modban {player} {days} {reason} This is how you ban people thanks to BajanVlogs
Keep it public for search engine purposes. As @Thunder33345 said, compare the current timestamp with the timestamp during the ban. What do you not understand exactly?