mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Really minor changes.
This commit is contained in:
parent
f5989d461c
commit
aefcab9a49
3 changed files with 27 additions and 7 deletions
|
|
@ -45,9 +45,6 @@ class PermissionsAPI{
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* @access public
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
ServerAPI::request()->api->addHandler("player.connect", function ($player)//Use a better event than player.connect. Player.create maybe?
|
||||
|
|
@ -60,6 +57,11 @@ class PermissionsAPI{
|
|||
$player->permission = new DefaultPermission();
|
||||
}
|
||||
}, 1);//Experimental. Use Closure / Anonymous Functions to assign new functions from each API rather than hard-coding them to Player.php.
|
||||
|
||||
ServerAPI::request()->api->addHandler("player.connect", function ($player)
|
||||
{
|
||||
|
||||
}, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ class ServerAPI{
|
|||
private $rcon;
|
||||
private $query;
|
||||
|
||||
//TODO: Instead of hard-coding functions, use PHPDoc-compatible methods to load APIs.
|
||||
|
||||
/**
|
||||
* @var ConsoleAPI
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue