1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Add Command Suffix to commands

This commit is contained in:
Tim Düsterhus 2012-09-07 22:23:27 +02:00
parent 09b2840ce1
commit 16b3809865
10 changed files with 10 additions and 10 deletions

View File

@ -63,7 +63,7 @@ public function loadCommand() {
return new commands\Plain($this);
}
$class = '\wcf\system\chat\command\commands\\'.ucfirst(strtolower($parts[0]));
$class = '\wcf\system\chat\command\commands\\'.ucfirst(strtolower($parts[0])).'Command';
if (!class_exists($class)) {
throw new NotFoundException();
}

View File

@ -11,7 +11,7 @@
* @package be.bastelstu.wcf.chat
* @subpackage system.chat.command.commands
*/
class Away extends \wcf\system\chat\command\AbstractCommand {
class AwayCommand extends \wcf\system\chat\command\AbstractCommand {
public function __construct(\wcf\system\chat\command\CommandHandler $commandHandler) {
parent::__construct($commandHandler);

View File

@ -11,7 +11,7 @@
* @package be.bastelstu.wcf.chat
* @subpackage system.chat.command.commands
*/
class Color extends \wcf\system\chat\command\AbstractCommand {
class ColorCommand extends \wcf\system\chat\command\AbstractCommand {
public static $colors = array(
'red' => 0xFF0000,
'blue' => 0x0000FF,

View File

@ -10,7 +10,7 @@
* @package be.bastelstu.wcf.chat
* @subpackage system.chat.command.commands
*/
class Free extends Me {
class FreeCommand extends Me {
public function __construct(\wcf\system\chat\command\CommandHandler $commandHandler) {
parent::__construct($commandHandler);

View File

@ -14,7 +14,7 @@
* @package be.bastelstu.wcf.chat
* @subpackage system.chat.command.commands
*/
class Info extends \wcf\system\chat\command\AbstractCommand {
class InfoCommand extends \wcf\system\chat\command\AbstractCommand {
public $enableHTML = 1;
public $lines = array();
public $user = null;

View File

@ -11,7 +11,7 @@
* @package be.bastelstu.wcf.chat
* @subpackage system.chat.command.commands
*/
class Me extends \wcf\system\chat\command\AbstractCommand {
class MeCommand extends \wcf\system\chat\command\AbstractCommand {
public $enableSmilies = \wcf\system\chat\command\ICommand::SMILEY_USER;
public function __construct(\wcf\system\chat\command\CommandHandler $commandHandler) {

View File

@ -10,7 +10,7 @@
* @package be.bastelstu.wcf.chat
* @subpackage system.chat.command.commands
*/
class Plain extends \wcf\system\chat\command\AbstractCommand {
class PlainCommand extends \wcf\system\chat\command\AbstractCommand {
public $enableSmilies = \wcf\system\chat\command\ICommand::SMILEY_USER;
/**

View File

@ -12,7 +12,7 @@
* @package be.bastelstu.wcf.chat
* @subpackage system.chat.command.commands
*/
class Restore extends \wcf\system\chat\command\AbstractRestrictedCommand {
class RestoreCommand extends \wcf\system\chat\command\AbstractRestrictedCommand {
public $enableHTML = 1;
public $user = null;
public $link = '';

View File

@ -12,7 +12,7 @@
* @package be.bastelstu.wcf.chat
* @subpackage system.chat.command.commands
*/
class Temproom extends \wcf\system\chat\command\AbstractRestrictedCommand {
class TemproomCommand extends \wcf\system\chat\command\AbstractRestrictedCommand {
public $roomName = '';
public function __construct(\wcf\system\chat\command\CommandHandler $commandHandler) {

View File

@ -10,7 +10,7 @@
* @package be.bastelstu.wcf.chat
* @subpackage system.chat.command.commands
*/
class Where extends \wcf\system\chat\command\AbstractCommand {
class WhereCommand extends \wcf\system\chat\command\AbstractCommand {
public $enableHTML = 1;
/**