Skip to content

Commit

Permalink
Merge pull request MultiChat#158 from MultiChat/exploit-fix
Browse files Browse the repository at this point in the history
Exploit fix
  • Loading branch information
OllieMartin committed Jan 30, 2021
2 parents c321ce7 + a9481f2 commit 3d52572
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 31 deletions.
6 changes: 3 additions & 3 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.9.5</version>
<version>1.9.6</version>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -148,7 +148,7 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.16-R0.2-SNAPSHOT</version>
<version>1.16-R0.4-SNAPSHOT</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand Down Expand Up @@ -184,7 +184,7 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.16-R0.2-SNAPSHOT</version>
<version>1.16-R0.4-SNAPSHOT</version>
<type>javadoc</type>
<scope>provided</scope>
<exclusions>
Expand Down
6 changes: 3 additions & 3 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.9.5</version>
<version>1.9.6</version>

<repositories>

Expand Down Expand Up @@ -117,15 +117,15 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.16-R0.2-SNAPSHOT</version>
<version>1.16-R0.4-SNAPSHOT</version>
<type>jar</type>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.16-R0.2-SNAPSHOT</version>
<version>1.16-R0.4-SNAPSHOT</version>
<type>javadoc</type>
<scope>provided</scope>
</dependency>
Expand Down
Binary file added multichat/releases/1.9.5/multichat-1.9.6.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -179,23 +179,15 @@ public static void sendPlayerChannelMessage(String playerName, String channel, C
}

@EventHandler
public static void onPluginMessage(PluginMessageEvent ev) {

if (! (ev.getTag().equals("multichat:comm") || ev.getTag().equals("multichat:chat") || ev.getTag().equals("multichat:prefix") || ev.getTag().equals("multichat:suffix") || ev.getTag().equals("multichat:dn") || ev.getTag().equals("multichat:world") || ev.getTag().equals("multichat:nick") || ev.getTag().equals("multichat:pxe") || ev.getTag().equals("multichat:ppxe")) ) {
public void onPluginMessage(PluginMessageEvent ev) {
if (!ev.getTag().startsWith("multichat:"))
return;
}

if (!(ev.getSender() instanceof Server)) {
ev.setCancelled(true);
return;
}

if (ev.getTag().equals("multichat:comm")) {

// TODO Remove - legacy
return;

}

if (ev.getTag().equals("multichat:chat")) {

ev.setCancelled(true);
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.9.5";
public static final String LATEST_VERSION = "1.9.6";

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

LATEST_VERSION,
"1.9.5",
"1.9.4",
"1.9.3",
"1.9.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
import xyz.olivermartin.multichat.local.sponge.listeners.communication.LocalSpongePlayerChannelListener;
import xyz.olivermartin.multichat.local.sponge.listeners.communication.LocalSpongePlayerMetaListener;

@Plugin(id = "multichat", name = "MultiChat", version = "1.9.5", dependencies = { @Dependency(id = "placeholderapi", optional = true) })
@Plugin(id = "multichat", name = "MultiChat", version = "1.9.6", dependencies = { @Dependency(id = "placeholderapi", optional = true) })
public class MultiChatLocalSpongePlugin {

@Inject
Expand Down
2 changes: 1 addition & 1 deletion multichat/src/main/resources/bungee.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: MultiChat
main: xyz.olivermartin.multichat.bungee.MultiChat
version: 1.9.5
version: 1.9.6
author: Revilo410
api-version: 1.16
softdepends: [PremiumVanish]
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.9.5" #
version: "1.9.6" #
##################

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

##################
# NE PAS EDITER #
version: "1.9.5" #
version: "1.9.6" #
##################

# French Translation by Nogapra - Thank you !
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.9.5" #
version: "1.9.6" #
##################

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

##################
# NE PAS EDITER #
version: "1.9.5" #
version: "1.9.6" #
##################

# French Translation by Nogapra - Thank you !
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.9.5" #
version: "1.9.6" #
##################

############################################################
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.9.5" #
version: "1.9.6" #
##################

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

##################
# DON'T EDIT #
version: "1.9.5" #
version: "1.9.6" #
##################

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

##################
# NE PAS EDITER #
version: "1.9.5" #
version: "1.9.6" #
##################

# 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.9.5" #
version: "1.9.6" #
##################

############################################################
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.9.5" #
version: "1.9.6" #
##################

# French Translation by Nogapra - Thank you!
Expand Down
2 changes: 1 addition & 1 deletion multichat/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MultiChat
version: 1.9.5
version: 1.9.6
author: Revilo410
main: xyz.olivermartin.multichat.local.spigot.MultiChatLocalSpigotPlugin
softdepend: [Vault,PlaceholderAPI]
Expand Down

0 comments on commit 3d52572

Please sign in to comment.