mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
warning when using kill in console without args fixe
This commit is contained in:
parent
410d87fa14
commit
71da620aa3
1 changed files with 2 additions and 1 deletions
|
|
@ -222,7 +222,8 @@ class PlayerAPI{
|
||||||
}
|
}
|
||||||
case "kill":
|
case "kill":
|
||||||
case "suicide":
|
case "suicide":
|
||||||
if(!isset($args[0]) and ($issuer instanceof Player)){
|
if(!isset($args[0])){
|
||||||
|
if(!($issuer instanceof Player)) return "Usage: /kill <player>";
|
||||||
$player = $issuer;
|
$player = $issuer;
|
||||||
}else{
|
}else{
|
||||||
$player = $this->get($args[0]);
|
$player = $this->get($args[0]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue