mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
2339525478
@ -83,8 +83,7 @@ interface 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
|
||||
*/
|
||||
@ -95,14 +94,10 @@ class DefaultPermission implements Permission//TODO: Remove this in the future f
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function isGranted($permissionToCheckGranted)
|
||||
{
|
||||
if($this->getPermissionLevel() >= $permissionToCheckGranted->getPermissionLevel())
|
||||
{
|
||||
public function isGranted($permissionToCheckGranted){
|
||||
if($this->getPermissionLevel() >= $permissionToCheckGranted->getPermissionLevel()){
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -110,8 +105,7 @@ class DefaultPermission implements Permission//TODO: Remove this in the future f
|
||||
/**
|
||||
* @return integer
|
||||
*/
|
||||
public function getPermissionLevel()
|
||||
{
|
||||
public function getPermissionLevel(){
|
||||
return $this->permissionLevel;
|
||||
}
|
||||
}
|
@ -80,7 +80,8 @@ class CraftingRecipes{
|
||||
"DYE:4x1,DYE:15x1=>DYE:12x2",
|
||||
"DYE:2x1,DYE:4x1=>DYE:6x2",
|
||||
"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:5x1,DYE:9x1=>DYE:13x2",//
|
||||
"DYE:0x1,DYE:15x1=>DYE:8x2",//
|
||||
|
Loading…
x
Reference in New Issue
Block a user