Skip to content

Commit

Permalink
2.7.1 - Fixed blocked skull bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranhart committed Dec 28, 2021
1 parent 579e0b0 commit 02b7a0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Expand Up @@ -7,7 +7,7 @@
<artifactId>skulls</artifactId>

<name>Skulls</name>
<version>2.7.0</version>
<version>2.7.1</version>
<packaging>jar</packaging>

<properties>
Expand Down Expand Up @@ -43,7 +43,7 @@
</dependency>
</dependencies>
<build>
<finalName>${jarName}-${project.version}</finalName>
<finalName>${jarName}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -135,7 +135,7 @@
<resources>
<resource>
<directory>C:\Users\Kiran\Documents\Development\Minecraft\Active\${project.name}\target</directory>
<include>${project.name}-${project.version}.jar</include>
<include>${project.name}.jar</include>
<filtering>false</filtering>
</resource>
</resources>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ca/tweetzy/skulls/menus/MenuList.java
Expand Up @@ -213,7 +213,7 @@ private void handleShiftRightClick(Player player, Skull item) {
}

private void handleOtherClick(Player player, Skull item) {
if (SkullsAPI.isBlocked(item.getId()) && !player.isOp() || !PlayerUtil.hasPerm(player, Permissions.BUY_BLOCKED)) return;
if (SkullsAPI.isBlocked(item.getId()) && !player.isOp() || SkullsAPI.isBlocked(item.getId()) && !PlayerUtil.hasPerm(player, Permissions.BUY_BLOCKED)) return;
if (Settings.CHARGE_FOR_HEADS) {

if (!EconomyManager.getInstance().has(player, item.getPrice()) && !PlayerUtil.hasPerm(player, Permissions.FREE_SKULLS)) {
Expand Down

0 comments on commit 02b7a0d

Please sign in to comment.