Skip to content

Commit

Permalink
Simply permission checker
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroCC committed Jul 16, 2017
1 parent 28d622a commit b507ab3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/org/minecast/bedhome/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,7 @@ public String getLanguage() {
public boolean isPlayerAuthorized(CommandSender s, String perm) {
if (s instanceof Player) {
Player p = (Player) s;
if (p.hasPermission(perm) || p.isOp()) {
return true;
} else {
return false;
}
return p.hasPermission(perm) || p.isOp();
} else {
return true;
}
Expand Down Expand Up @@ -404,7 +400,6 @@ public Location getAltBedBlock(Block b){
Block b2 = b.getRelative(x, 0, z);
if (!(b.getLocation().equals(b2.getLocation()))) {
if (b2.getType().equals(Material.BED_BLOCK)) {
System.out.println(b2);
return b2.getLocation();
}
}
Expand Down

0 comments on commit b507ab3

Please sign in to comment.