plugin interface id

This commit is contained in:
Steffen Schröder
2013-12-09 10:04:22 +01:00
parent 53f568847f
commit 88f5239965
7 changed files with 70 additions and 9 deletions

View File

@ -16,7 +16,8 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
/**
* Constants
*/
const VERSION = 1.0;
const ID = 3;
const VERSION = 0.1;
const SETTING_ANNOUNCE_SERVERDONATION = 'Enable Server-Donation Announcements';
/**
@ -41,12 +42,20 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
$this->maniaControl->callbackManager->registerCallbackListener(CallbackManager::CB_MP_BILLUPDATED, $this, 'handleBillUpdated');
}
/**
*
* @see \ManiaControl\Plugins\Plugin::getId()
*/
public static function getId() {
return self::ID;
}
/**
*
* @see \ManiaControl\Plugins\Plugin::getName()
*/
public static function getName() {
return 'Donation Plugin';
return 'Donations Plugin';
}
/**
@ -70,7 +79,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
* @see \ManiaControl\Plugins\Plugin::getDescription()
*/
public static function getDescription() {
return 'DonationPlugin commands like /donate, /pay and /getplanets and a donation widget.';
return 'Plugin offering commands like /donate, /pay and /getplanets and a donation widget.';
}
/**