Skip to content

Commit

Permalink
Removed unecessary import
Browse files Browse the repository at this point in the history
  • Loading branch information
OllieMartin committed May 28, 2019
1 parent ebedd5a commit a4c5be4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
12 changes: 4 additions & 8 deletions multichat/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>xyz.olivermartin.multichat</groupId>
<artifactId>multichat</artifactId>
<version>1.7.3</version>
<version>1.7.4</version>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -134,7 +134,7 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.13-SNAPSHOT</version>
<version>1.14-SNAPSHOT</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand All @@ -158,7 +158,7 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.13-SNAPSHOT</version>
<version>1.14-SNAPSHOT</version>
<type>javadoc</type>
<scope>provided</scope>
<exclusions>
Expand All @@ -183,17 +183,13 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.13.1-R0.1-SNAPSHOT</version>
<version>1.14.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<artifactId>commons-lang</artifactId>
<groupId>commons-lang</groupId>
</exclusion>
<exclusion>
<artifactId>json-simple</artifactId>
<groupId>com.googlecode.json-simple</groupId>
</exclusion>
<exclusion>
<artifactId>snakeyaml</artifactId>
<groupId>org.yaml</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package xyz.olivermartin.multichat.spigotbridge;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

import net.milkbowl.vault.chat.Chat;
Expand All @@ -23,9 +22,9 @@ public static String buildChatFormat(Player player, String format) {
return format + "%2$s";

}

public static String buildMultiChatPlaceholder(Player player, String format) {

format = format.replace("%NAME%", player.getName());
format = format.replace("%DISPLAYNAME%", "%1$s"); // This might work?
if (MultiChatSpigot.hookedVault()) {
Expand All @@ -38,7 +37,7 @@ public static String buildMultiChatPlaceholder(Player player, String format) {
format = format.replace("%SERVER%", MultiChatSpigot.serverName);

return format;

}

}

0 comments on commit a4c5be4

Please sign in to comment.