2011-12-27 12:58:28 +00:00
|
|
|
<?php
|
|
|
|
namespace wcf\system\chat\commands\commands;
|
|
|
|
|
|
|
|
/**
|
2012-01-22 14:40:25 +00:00
|
|
|
* Informs everyone that the fish was freed. OH A NOEZ.
|
2011-12-27 12:58:28 +00:00
|
|
|
*
|
|
|
|
* @author Tim Düsterhus
|
|
|
|
* @copyright 2010-2011 Tim Düsterhus
|
|
|
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
|
|
|
* @package timwolla.wcf.chat
|
|
|
|
* @subpackage system.chat.commands.commands
|
|
|
|
*/
|
2011-12-27 13:32:28 +00:00
|
|
|
class Free extends Me {
|
|
|
|
const ENABLE_SMILIES = \wcf\system\chat\commands\ICommand::SMILEY_OFF;
|
2011-12-27 12:58:28 +00:00
|
|
|
|
2011-12-27 13:32:28 +00:00
|
|
|
/**
|
|
|
|
* @see \wcf\system\chat\commands\ICommand::getMessage()
|
|
|
|
*/
|
2011-12-27 12:58:28 +00:00
|
|
|
public function getMessage() {
|
2012-01-28 14:23:33 +00:00
|
|
|
if (\wcf\util\StringUtil::toLowerCase($this->commandHandler->getParameters()) == 'the fish')
|
|
|
|
return 'freed the fish. OH A NOEZ';
|
|
|
|
else
|
|
|
|
throw new \wcf\system\chat\commands\NotFoundException();
|
2011-12-27 12:58:28 +00:00
|
|
|
}
|
|
|
|
}
|