I see servers that have floating text like 'kitpvp {player_count} playing' These are getting how many players are in a world and replacing with {player_count}. If i was to do this with slapper, how so? And, how do i get amount of players on the level?
Yeah, but; If i edited the slapper plugin $kitpvpplayers = $this->getLevel(KitPvP) Then I made it so {KITPVP_PLAYERS} replaces $kitpvpplayers, would it work?
Yea, if you did it properly. You might wanna update the count every x ticks to make sure a somewhat accurate count is displayed tho. PHP: str_replace("{KITPVP_PLAYERS", count(Server::getLevelByName("KitPvP")->getPlayers()), $name);
It's a not very noob friendly thing to do. If you understand everything about repeating tasks and somewhat of entity classes, I can help you.