warning when using kill in console without args fixe

This commit is contained in:
GameHerobrine 2025-06-12 04:01:29 +03:00
parent 410d87fa14
commit 71da620aa3

View file

@ -222,7 +222,8 @@ class PlayerAPI{
}
case "kill":
case "suicide":
if(!isset($args[0]) and ($issuer instanceof Player)){
if(!isset($args[0])){
if(!($issuer instanceof Player)) return "Usage: /kill <player>";
$player = $issuer;
}else{
$player = $this->get($args[0]);