Skip to content

Commit

Permalink
Fixed name tag visibility on higher versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Despical committed Jun 22, 2023
1 parent 35bce2e commit fca790c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The project isn't in the Central Repository yet, so specifying a repository is n
<dependency>
<groupId>com.github.Despical</groupId>
<artifactId>OITC</artifactId>
<version>2.3.7</version>
<version>2.3.8</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -56,7 +56,7 @@ repositories {
```
```
dependencies {
compileOnly group: "com.github.Despical", name: "OITC", version: "2.3.7";
compileOnly group: "com.github.Despical", name: "OITC", version: "2.3.8";
}
```
</details>
Expand Down
13 changes: 1 addition & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>me.despical</groupId>
<artifactId>one-in-the-chamber</artifactId>
<version>2.3.7</version>
<version>2.3.8</version>
<name>One In The Chamber</name>

<properties>
Expand Down Expand Up @@ -35,17 +35,14 @@
<id>papermc</id>
<url>https://papermc.io/repo/repository/maven-public/</url>
</repository>

<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>

<repository>
<id>papi-repo</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>

<repository>
<id>codemc-repo</id>
<url>https://repo.codemc.org/repository/maven-public/</url>
Expand All @@ -58,26 +55,22 @@
<artifactId>Commons</artifactId>
<version>1.6.4</version>
</dependency>

<dependency>
<groupId>com.github.Despical</groupId>
<artifactId>InventoryFramework</artifactId>
<version>2.2.6</version>
</dependency>

<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.1</version>
</dependency>

<dependency>
<groupId>com.destroystokyo.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.16.5-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
Expand Down Expand Up @@ -107,7 +100,6 @@
<target>${java.version}</target>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand All @@ -121,7 +113,6 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand All @@ -132,7 +123,6 @@
</archive>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand All @@ -156,7 +146,6 @@
</execution>
</executions>
</plugin>

</plugins>
</build>
</project>
2 changes: 1 addition & 1 deletion src/main/java/me/despical/oitc/arena/ArenaUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static void showPlayersOutsideTheGame(Player player, Arena arena) {
}
}

private final static boolean isLegacy = ReflectionUtils.supports(8);
private final static boolean isLegacy = !ReflectionUtils.supports(9);
private final static boolean isNameTagsSupported = !isLegacy && plugin.getConfigPreferences().getOption(ConfigPreferences.Option.NAME_TAGS_HIDDEN);

public static boolean isLegacy() {
Expand Down

0 comments on commit fca790c

Please sign in to comment.