Skip to content

Commit

Permalink
Other misc clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Feb 11, 2024
1 parent 7023669 commit aebc8b0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Expand Up @@ -233,8 +233,6 @@ public boolean hasAlternativePrize() {
*/
public boolean hasPermission(Player player) {
if (player.isOp()) {
if (this.plugin.isLogging()) this.plugin.getLogger().warning(player.getName() + " is opped so we do not check for blacklist permissions.");

return false;
}

Expand Down
Expand Up @@ -21,7 +21,7 @@
*/
public class SkullCreator {

private static final CrazyCrates plugin = CrazyCrates.getPlugin(CrazyCrates.class);
private static final CrazyCrates plugin = CrazyCrates.get();

/**
* Creates a player skull with a UUID. 1.13 only.
Expand Down
Expand Up @@ -425,7 +425,7 @@ public List<Entity> getDisplayedRewards() {
*
* @return true if yes otherwise false
*/
public Boolean allCratesOpened() {
public boolean allCratesOpened() {
for (Map.Entry<Location, Boolean> location : this.cratesOpened.entrySet()) {
if (!location.getValue()) return false;
}
Expand Down

0 comments on commit aebc8b0

Please sign in to comment.