This commit is contained in:
Shoghi Cervantes 2013-11-25 11:02:33 +01:00
parent 249e83db91
commit 0ac81968b7
2 changed files with 7 additions and 12 deletions

View File

@ -83,8 +83,7 @@ interface Permission{
public function isGranted($permission); public function isGranted($permission);
} }
class DefaultPermission implements Permission//TODO: Remove this in the future for a better system than a default permission. class DefaultPermission implements Permission{//TODO: Remove this in the future for a better system than a default permission.
{
/** /**
* @var integer * @var integer
*/ */
@ -95,14 +94,10 @@ class DefaultPermission implements Permission//TODO: Remove this in the future f
* *
* @return boolean * @return boolean
*/ */
public function isGranted($permissionToCheckGranted) public function isGranted($permissionToCheckGranted){
{ if($this->getPermissionLevel() >= $permissionToCheckGranted->getPermissionLevel()){
if($this->getPermissionLevel() >= $permissionToCheckGranted->getPermissionLevel())
{
return true; return true;
} }else{
else
{
return false; return false;
} }
} }
@ -110,8 +105,7 @@ class DefaultPermission implements Permission//TODO: Remove this in the future f
/** /**
* @return integer * @return integer
*/ */
public function getPermissionLevel() public function getPermissionLevel(){
{
return $this->permissionLevel; return $this->permissionLevel;
} }
} }

View File

@ -80,7 +80,8 @@ class CraftingRecipes{
"DYE:4x1,DYE:15x1=>DYE:12x2", "DYE:4x1,DYE:15x1=>DYE:12x2",
"DYE:2x1,DYE:4x1=>DYE:6x2", "DYE:2x1,DYE:4x1=>DYE:6x2",
"DYE:1x1,DYE:4x1=>DYE:5x2", "DYE:1x1,DYE:4x1=>DYE:5x2",
"DYE:1x1,DYE:4x1,DYE:15x1=>DYE:13x3", "DYE:1x1,DYE:4x1,DYE:15x1=>DYE:13x3",
"BEETROOT:?x1=>DYE:1x1",
"DYE:15x1,DYE:1x2,DYE:4x1=>DYE:13x4",// "DYE:15x1,DYE:1x2,DYE:4x1=>DYE:13x4",//
"DYE:5x1,DYE:9x1=>DYE:13x2",// "DYE:5x1,DYE:9x1=>DYE:13x2",//
"DYE:0x1,DYE:15x1=>DYE:8x2",// "DYE:0x1,DYE:15x1=>DYE:8x2",//