mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed /whitelist reload crash
This commit is contained in:
parent
afbc3da6ed
commit
862938cfc7
2 changed files with 1 additions and 6 deletions
|
|
@ -138,7 +138,7 @@ class BanAPI{
|
|||
$output .= "Player \"$user\" added to white-list\n";
|
||||
break;
|
||||
case "reload":
|
||||
$this->whitelist = $this->load(FILE_PATH."white-list.txt", CONFIG_LIST);
|
||||
$this->whitelist = new Config(FILE_PATH."white-list.txt", CONFIG_LIST);
|
||||
break;
|
||||
case "list":
|
||||
$output .= "White-list: ".implode(", ", $this->whitelist->getAll(true))."\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue