fix wrong Better Chat documentation

This commit is contained in:
Beu
2021-12-26 13:04:19 +01:00
parent 0c1b5b7a9a
commit fe32137c09
3 changed files with 24 additions and 5 deletions

View File

@ -22,7 +22,7 @@ class SimpleChatColorer implements CommandListener, CallbackListener, Plugin {
* Constants
*/
const PLUGIN_ID = 161;
const PLUGIN_VERSION = 1.1;
const PLUGIN_VERSION = 1.2;
const PLUGIN_NAME = 'SimpleChatColorer';
const PLUGIN_AUTHOR = 'Beu';
@ -211,7 +211,7 @@ class SimpleChatColorer implements CommandListener, CallbackListener, Plugin {
if (!in_array($player->login, $this->betterchatlogins)) {
array_push($this->betterchatlogins, $player->login);
}
} else if (isset($argument[1]) && $argument[1] == "default") {
} else if (isset($argument[1]) && $argument[1] == "text") {
if (($key = array_search($player->login, $this->betterchatlogins)) !== false) {
unset($this->betterchatlogins[$key]);
}