mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +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 "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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue