mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
OCD
This commit is contained in:
parent
249e83db91
commit
0ac81968b7
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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",//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user