Ошибка в команде

ip
[Server] [01:54:18] [Server thread/INFO]: An unknown error occurred while attempting to perform this command
[Server] [01:54:18] [Server thread/CRITICAL]: Unhandled exception executing command ‘ip’ in ip: Call to undefined function i\strolower()
[Server] [01:54:18] [Server thread/CRITICAL]: Error: “Call to undefined function i\strolower()” (EXCEPTION) in “/прагрр/src/i/Main” at line 17
ip yor_20300
[Server] [01:54:23] [Server thread/INFO]: An unknown error occurred while attempting to perform this command
[Server] [01:54:23] [Server thread/CRITICAL]: Unhandled exception executing command ‘ip yor_20300’ in ip: Call to undefined function i\strolower()
[Server] [01:54:23] [Server thread/CRITICAL]: Error: “Call to undefined function i\strolower()” (EXCEPTION) in “/прагрр/src/i/Main” at line 17

???как???

  1. скачай IDE, иначе не увидишь ошибок синтаксиса и будешь форум засорять
  2. удали антивирус

и у тебя ошибка, strolower вместо strtolower()

Че это IDE

Издеваешься, strolower создает команды и ты говоришь скобки убрать? Хорошо я уберу и что мне туда писать?

у тебя ошибка в названии функции :man_facepalming:

strtolower() приводит строку к нижнему регистру

А ты закрыл в конце ?> ???

Это не обязательно

А-а-а-а

У меня возникла ошибка номер2

Вот

ip
[Server] [14:21:59] [Server thread/INFO]: s
ip n
[Server] [14:22:03] [Server thread/INFO]: An unknown error occurred while attempting to perform this command
[Server] [14:22:03] [Server thread/CRITICAL]: Unhandled exception executing command ‘ip n’ in ip: Argument 1 passed to pocketmine\Server::getPlayer() must be of the type string, none given, called in /storage/emulated/0/PocketMine/plugins/прагрр/src/i/Main.php on line 22
[Server] [14:22:03] [Server thread/CRITICAL]: TypeError: “Argument 1 passed to pocketmine\Server::getPlayer() must be of the type string, none given, called in /storage/emulated/0/PocketMine/plugins/прагрр/src/i/Main.php on line 22” (EXCEPTION) in “/src/pocketmine/Server” at line 919
ip nikita_mix
[Server] [14:22:14] [Server thread/INFO]: An unknown error occurred while attempting to perform this command
[Server] [14:22:14] [Server thread/CRITICAL]: Unhandled exception executing command ‘ip nikita_mix’ in ip: Argument 1 passed to pocketmine\Server::getPlayer() must be of the type string, none given, called in /storage/emulated/0/PocketMine/plugins/прагрр/src/i/Main.php on line 22
[Server] [14:22:14] [Server thread/CRITICAL]: TypeError: “Argument 1 passed to pocketmine\Server::getPlayer() must be of the type string, none given, called in /storage/emulated/0/PocketMine/plugins/прагрр/src/i/Main.php on line 22” (EXCEPTION) in “/src/pocketmine/Server” at line 919

Просто дай плаг, я исправлю

Вот поагин.zip (1.2 КБ)
поагин.хит (100.3 ГБ)
Первый

<?php

namespace i;

use pocketmine\plugin\PluginBase;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\Server;
use pocketmine\Player;

class Main extends PluginBase{
	public function onEnable(){
		$this->getServer()->getLogger()->info("плагин работает");
	}
	public function onDisable(){
		$this->getServer->getLogger()->info("плагин стоп");
	}
	public function onCommand(CommandSender $pl, Command $cmd, $label, array $args){
		switch($cmd->getName()){
			case "ip":
			if(isset($args[0])){
			    if($this->getServer()->getPlayer($args[0]) !== null){
				     $p = $this->getServer()->getPlayer($args[0]);
			         $pl->sendMessage("IP игрока {$p->getName()}: {$p->getAddress()}");
			    }else{
				   $pl->sendMessage("{$p->getName()} не в сети");
			    }
		    }else{
			   $pl->sendMessage("s");
		    }
		    break;
		}
       }
}

Што за хуйня файл 100гб весит вы што дяди

Ну там куча команду)))

Пор…а.mp3 (5 ПБ)