improved message texts
This commit is contained in:
@ -170,7 +170,7 @@ class PlayerCommands implements CommandListener, ManialinkPageAnswerListener, Ca
|
||||
public function command_Warn(array $chatCallback, Player $player) {
|
||||
$params = explode(' ', $chatCallback[1][2], 3);
|
||||
if (count($params) <= 1) {
|
||||
$this->maniaControl->chat->sendUsageInfo("No Login given! Example: '//kick login'", $player->login);
|
||||
$this->maniaControl->chat->sendUsageInfo("No Login given! Example: '//warn login'", $player->login);
|
||||
return;
|
||||
}
|
||||
$targetLogin = $params[1];
|
||||
|
@ -207,7 +207,7 @@ class PlayerDataManager {
|
||||
if (is_array($param)) {
|
||||
return self::TYPE_ARRAY;
|
||||
}
|
||||
trigger_error('Unsupported setting type. ' . print_r($param, true));
|
||||
trigger_error('Unsupported data type. ' . print_r($param, true));
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -358,7 +358,7 @@ class PlayerDataManager {
|
||||
if ($type === self::TYPE_ARRAY) {
|
||||
return explode($this->arrayDelimiter, $value);
|
||||
}
|
||||
trigger_error('Unsupported setting type. ' . print_r($type, true));
|
||||
trigger_error('Unsupported data type. ' . print_r($type, true));
|
||||
return $value;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user