Merge remote-tracking branch 'origin/master'

This commit is contained in:
Michael Yoo 2013-11-25 20:34:57 +10:30
commit 2339525478
2 changed files with 7 additions and 12 deletions

View File

@ -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;
}
}

View File

@ -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",//