tweaks, new desc

This commit is contained in:
FeuSalamander 2023-04-30 21:06:07 +02:00
parent c093c1d747
commit 7822d224db
3 changed files with 7 additions and 7 deletions

View File

@ -6,12 +6,12 @@
<groupId>Vmessage</groupId> <groupId>Vmessage</groupId>
<artifactId>Vmessage</artifactId> <artifactId>Vmessage</artifactId>
<version>1.4</version> <version>1.5.3</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Vmessage</name> <name>Vmessage</name>
<description>A velocity plugin that creates a multiserver chat for the networth</description> <description>A velocity plugin that creates a global chat for the network</description>
<properties> <properties>
<java.version>11</java.version> <java.version>11</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -38,7 +38,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version> <version>3.2.1</version>
<executions> <executions>
<execution> <execution>
<id>attach-javadocs</id> <id>attach-javadocs</id>
@ -141,7 +141,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version> <version>3.5.0</version>
</plugin> </plugin>
</plugins> </plugins>
</reporting> </reporting>
@ -174,6 +174,7 @@
<groupId>net.william278</groupId> <groupId>net.william278</groupId>
<artifactId>PAPIProxyBridge</artifactId> <artifactId>PAPIProxyBridge</artifactId>
<version>1.0</version> <version>1.0</version>
<scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -141,9 +141,8 @@ public final class Listeners {
private String placeholder(String message, final Player player){ private String placeholder(String message, final Player player){
if(placeholderAPI == null)return message; if(placeholderAPI == null)return message;
UUID p = player.getUniqueId(); UUID p = player.getUniqueId();
AtomicReference<String> formated = new AtomicReference<>("");
placeholderAPI.formatPlaceholders("Hello %player_name%!", p).thenAccept(formatedd -> {proxyServer.sendMessage(Component.text("test: "+formatedd));}); placeholderAPI.formatPlaceholders("Hello %player_name%!", p).thenAccept(formatedd -> {proxyServer.sendMessage(Component.text("test: "+formatedd));});
return formated.get(); return message;
} }
public void message(final Player p, final String m) { public void message(final Player p, final String m) {
final boolean permission = p.hasPermission("vmessage.minimessage"); final boolean permission = p.hasPermission("vmessage.minimessage");
@ -175,4 +174,4 @@ public final class Listeners {
} }
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB