Skip to content

Commit

Permalink
Merge pull request #71 from MultiChat/minorupdates
Browse files Browse the repository at this point in the history
Minorupdates
  • Loading branch information
OllieMartin authored Feb 17, 2020
2 parents af765fc + a0adecc commit adf8f33
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 19 deletions.
8 changes: 4 additions & 4 deletions multichat/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>xyz.olivermartin.multichat</groupId>
<artifactId>multichat</artifactId>
<version>1.7.4</version>
<version>1.7.5</version>

<repositories>

Expand Down Expand Up @@ -91,23 +91,23 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.14-SNAPSHOT</version>
<version>1.15-SNAPSHOT</version>
<type>jar</type>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.14-SNAPSHOT</version>
<version>1.15-SNAPSHOT</version>
<type>javadoc</type>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.14.2-R0.1-SNAPSHOT</version>
<version>1.15.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@
*/
public class MultiChat extends Plugin implements Listener {

public static final String LATEST_VERSION = "1.7.4";
public static final String LATEST_VERSION = "1.7.5";

public static final String[] ALLOWED_VERSIONS = new String[] {

LATEST_VERSION,
"1.7.4",
"1.7.3",
"1.7.2",
"1.7.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ private MetaManager() {
public void updatePlayerMeta(String playername, boolean setDisplayName, String displayNameFormat) {

String nickname;

if (Bukkit.getPlayer(playername) == null) return;

nickname = NameManager.getInstance().getCurrentName(Bukkit.getPlayer(playername).getUniqueId());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
* @author Oliver Martin (Revilo410)
*
*/
@Plugin(id = "multichat", name = "MultiChatSponge", version = "1.7.4", dependencies = { @Dependency(id = "placeholderapi", optional = true) })
@Plugin(id = "multichat", name = "MultiChatSponge", version = "1.7.5", dependencies = { @Dependency(id = "placeholderapi", optional = true) })
public final class MultiChatSponge implements CommandExecutor {

public static SimpleMutableMessageChannel multichatChannel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.spongepowered.api.network.ChannelBuf;
import org.spongepowered.api.network.RawDataListener;
import org.spongepowered.api.network.RemoteConnection;
import org.spongepowered.api.scheduler.Task;

/**
* Used to execute command send from MultiChat on bungeecord
Expand All @@ -22,8 +23,18 @@ public BungeeCommandListener() {
@Override
public void handlePayload(ChannelBuf data, RemoteConnection connection, Platform.Type side) {

String command = data.getUTF(0);
Sponge.getCommandManager().process(Sponge.getServer().getConsole(), command);
Task.Builder taskBuilder = Task.builder();
final String command = data.getUTF(0);

taskBuilder.execute(new Runnable() {
public void run() {
Sponge.getCommandManager().process(Sponge.getServer().getConsole(), command);
}
});

taskBuilder.delayTicks(1);

taskBuilder.submit(Sponge.getPluginManager().getPlugin("multichat").get().getInstance().get());

}
}
2 changes: 1 addition & 1 deletion multichat/src/main/resources/bungee.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MultiChat
main: xyz.olivermartin.multichat.bungee.MultiChat
version: 1.7.4
version: 1.7.5
author: Revilo410
api-version: 1.13
2 changes: 1 addition & 1 deletion multichat/src/main/resources/chatcontrol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

##################
# DON'T EDIT #
version: "1.7.4" #
version: "1.7.5" #
##################

# 1. Chat Control Rules
Expand Down
2 changes: 1 addition & 1 deletion multichat/src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

##################
# DON'T EDIT #
version: "1.7.4" #
version: "1.7.5" #
##################

# 1. General
Expand Down
2 changes: 1 addition & 1 deletion multichat/src/main/resources/joinmessages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

##################
# DON'T EDIT #
version: "1.7.4" #
version: "1.7.5" #
##################

############################################################
Expand Down
2 changes: 1 addition & 1 deletion multichat/src/main/resources/joinmessages_fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

##################
# Ne pas éditer #
version: "1.7.4" #
version: "1.7.5" #
##################

# French Translation by Nogapra - Thank you!
Expand Down
2 changes: 1 addition & 1 deletion multichat/src/main/resources/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

##################
# DON'T EDIT #
version: "1.7.4" #
version: "1.7.5" #
##################

############################################################
Expand Down
2 changes: 1 addition & 1 deletion multichat/src/main/resources/messages_fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

##################
# DON'T EDIT #
version: "1.7.4" #
version: "1.7.5" #
##################

# French Translation by Nogapra - Thank you!
Expand Down
2 changes: 1 addition & 1 deletion multichat/src/main/resources/multichatsponge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

##################
# DON'T EDIT #
version: "1.7.4" #
version: "1.7.5" #
##################

# Specify the name of this server here for the %SERVER% placeholder
Expand Down
4 changes: 2 additions & 2 deletions multichat/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: MultiChatSpigot
version: 1.7.4
version: 1.7.5
author: Revilo410
main: xyz.olivermartin.multichat.spigotbridge.MultiChatSpigot
softdepend: [Vault,PlaceholderAPI]
api-version: 1.13
api-version: 1.14
commands:
nick:
description: Gives a player a nickname
Expand Down
2 changes: 1 addition & 1 deletion multichat/src/main/resources/spigotconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

##################
# DON'T EDIT #
version: "1.7.4" #
version: "1.7.5" #
##################

# Specify the name of this server here for the %SERVER% placeholder
Expand Down

0 comments on commit adf8f33

Please sign in to comment.