Skip to content

Commit

Permalink
Update version number, remove test functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Voyager006 committed Dec 18, 2020
1 parent 7aa8bb0 commit f759c90
Showing 1 changed file with 1 addition and 61 deletions.
62 changes: 1 addition & 61 deletions plugins/plugin.knockout.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Dynamic KO multiplier algorithm by Solux.
* Based on original plugin by CavalierDeVache. Idea by Mikey.
*/
const Version = '2.0.3 (beta)';
const Version = '2.0.3';
const MinimumLogLevel = Log::Information;


Expand Down Expand Up @@ -5153,65 +5153,6 @@ public function playerManialinkPageAnswer($args)
break;
}
}

/**
* @param array $args Arguments to the command.
* @param array $issuer A single-element array.
*
* $issuer = [
* [0] => (string) The login of the player who issued the command.
* [1] => (string) The nickname of the player who issued the command.
* ]
*/
public function testChatCommand($args, $issuer)
{
if (isadmin($issuer[0]))
{
// $player1 = array(
// 'Login' => 'player1',
// 'PlayerId' => '1',
// 'NickName' => 'Dummo|Player 1|teamOne',
// 'Score' => 120000
// );
// $player2 = array(
// 'Login' => 'player2',
// 'PlayerId' => '2',
// 'NickName' => 'Dummo|Player 2|teamOne',
// 'Score' => (120000 * 10)
// );
// $player3 = array(
// 'Login' => 'player3',
// 'PlayerId' => '3',
// 'NickName' => 'Dummo|Player 3|teamOne',
// 'Score' => (120000 * 60)
// );
// $player4 = array(
// 'Login' => 'player4',
// 'PlayerId' => '4',
// 'NickName' => 'Dummo|Player 4|teamOne',
// 'Score' => Scores::DidNotFinish
// );
// $empty = array(
// 'Login' => 'none',
// 'PlayerId' => '5',
// 'NickName' => 'None',
// 'Score' => Scores::DidNotFinish
// );
// UI::updateScoreboard(
// array($player1, $player2, $player3, $player4, $empty, $empty, $empty, $empty, $empty, $empty),
// GameMode::Rounds,
// 1,
// 10,
// $issuer[0]
// );
// Chat::info2('test done', array($issuer[0]));
Chat::info2(Text::clean(implode(' ', $args)), $issuer[0]);
}
else
{
Chat::error(" UNKNOWN COMMAND !", array($issuer[0]));
}
}
}

$this->AddPlugin(new KnockoutRuntime());
Expand All @@ -5232,6 +5173,5 @@ public function testChatCommand($args, $issuer)
$this->addChatCommand('ko', true, 'adminChatCommands');
$this->addChatCommand('info', true, 'infoChatCommand');
$this->addChatCommand('opt', true, 'optChatCommand');
$this->addChatCommand('test', false, 'testChatCommand');

?>

0 comments on commit f759c90

Please sign in to comment.