Cikles in commands
#2

Not really, a foreach loop takes around 20 ms to complete. This means you can run 50 foreach loops per second without any problems. You should add some kind of anti-spam though, it's useful not only to protect server resources, but also to deny any kind of spam towards a player (maybe you have commands that send messages to players).
Reply


Messages In This Thread
Cikles in commands - by Banditukas - 15.01.2015, 17:14
Re: Cikles in commands - by HazardouS - 15.01.2015, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)