They can help me, since I made a plugin of top 10 best players but if the name is smaller than the other or bigger, it looks crooked at first, and I want it to look right at the beginning and crooked at the end. Do you understand?
You want it to be aligned? If so, here is the code that can output a string that is aligned by giving the string, line width and alignment PHP: function align($text, $lineWidth, $center = true) { $len = strlen($text); if($center) { $half = floor(($lineWidth - $len) / 2); return str_repeat(" ", $half) . $text . str_repeat(" ", $half); } else { return $text . str_repeat(" ", max(0, $lineWidth - $len)); }} Adjust it to your needs and apply this function to every line.[/php]
sorry for my ignorance but that code where it is posted? before or after the public function onJoin or on the onCommand