Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete Refactor of MultiChatSpigot and MultiChatSponge to MultiChatLocal #85

Merged
merged 134 commits into from
May 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
3823821
Implemented loads of new MultiChatLocal classes
OllieMartin Apr 9, 2020
5ed5ebe
Added option to register config directory in API
OllieMartin Apr 9, 2020
5947a1a
Fixed the sponge file based name manager
OllieMartin Apr 9, 2020
3e00088
Added singleton classes to manage hooks with other plugins
OllieMartin Apr 9, 2020
392a47c
Added meta manager to API
OllieMartin Apr 9, 2020
50ade95
Started to add communication managers
OllieMartin Apr 9, 2020
1b2dcf9
Added comment
OllieMartin Apr 9, 2020
275dddd
Renamed database package
OllieMartin Apr 10, 2020
864d7e5
Added a whole lot of work on Sponge and Spigot communication managers
OllieMartin Apr 10, 2020
6cab0ab
Added the local meta managers for Spigot and Sponge
OllieMartin Apr 10, 2020
878e3bb
Added local placeholder managers for spigot and sponge
OllieMartin Apr 10, 2020
df02621
Added all the main classes from spigot and sponge main package to local
OllieMartin Apr 10, 2020
655d9ce
Tweaked how config reading works
OllieMartin Apr 10, 2020
2d2773c
Use getters in config file instead of public fields
OllieMartin Apr 11, 2020
3b0d4e9
Started work to implement new spigot plugin class
OllieMartin Apr 11, 2020
7196577
Implemented complete file system manager for nickname file loading
OllieMartin Apr 11, 2020
fbdf6df
Corrected packages
OllieMartin Apr 11, 2020
4560663
Added console loggers for spigot and sponge
OllieMartin Apr 11, 2020
b96df74
Registered console logger with spigot api
OllieMartin Apr 11, 2020
e8c8a5c
Loads of debug messages to try and figure out this colour issue...
OllieMartin Apr 11, 2020
1269f9e
Issue resolved, removed the hardcoded messages from spigot.
OllieMartin Apr 11, 2020
3b008c5
Added LocalDatabaseSetupManager
OllieMartin Apr 12, 2020
a5c99a1
Did a lot of refactoring
OllieMartin Apr 12, 2020
71bcb06
Implemented generic MultiChatLocal command
OllieMartin Apr 12, 2020
dae695e
Completed ProxyExecute command
OllieMartin Apr 12, 2020
f66623b
Fixed visibility issue
OllieMartin Apr 12, 2020
a70ece9
Implemented nick and realname generic commands
OllieMartin Apr 12, 2020
425e1e7
Implemented username command, all commands now implemented on spigot
OllieMartin Apr 12, 2020
5b1355e
Implemented first listener class
OllieMartin Apr 13, 2020
4ef023a
Implemented Action Listeners
OllieMartin Apr 13, 2020
d730eca
Implemented the local global hack into the pact listener
OllieMartin Apr 13, 2020
dc890d0
Implemented local cast listener
OllieMartin Apr 13, 2020
42a02c4
Added bungee object messaging class
OllieMartin Apr 13, 2020
33bebf4
Added channel listener
OllieMartin Apr 13, 2020
0945b16
Implemented ignore listener
OllieMartin Apr 13, 2020
500bda3
Registered listeners in onenable
OllieMartin Apr 13, 2020
14f1241
Implemented all listeners except for the chat ones
OllieMartin Apr 13, 2020
889cfa0
Implemented the lowest chat message listener
OllieMartin Apr 14, 2020
87e1768
Implemented chat listener highest
OllieMartin Apr 14, 2020
d609bc5
Implemented monitor chat listener for spigot
OllieMartin Apr 14, 2020
4394988
First full attempt at MultiChatLocal for Spigot...
OllieMartin Apr 14, 2020
df460a9
Removed duplicate sponge plugin for now
OllieMartin Apr 14, 2020
ff722ed
Added a couple of debug messages
OllieMartin Apr 14, 2020
f325893
Added loads of debug messages
OllieMartin Apr 14, 2020
188fdee
Added way to turn on debug
OllieMartin Apr 14, 2020
be58917
Updated plugin yml
OllieMartin Apr 14, 2020
331e9d3
Added missing login and logout tasks for spigot
OllieMartin Apr 14, 2020
1bfc8b4
Removed lingering instance of MultiChatSpigot
OllieMartin Apr 15, 2020
e9bee1c
Added a couple of extra debug messages
OllieMartin Apr 15, 2020
9e2a0b8
Fixed tiny typo
OllieMartin Apr 15, 2020
dc95ff3
Lots of refactoring for LOWEST and HIGHEST listeners into chat manager
OllieMartin Apr 15, 2020
cff5ca9
Did some refactoring of the MONITOR level listener
OllieMartin Apr 16, 2020
5bee926
Fixed null pointer chat queue bug
OllieMartin Apr 16, 2020
4ad3a16
Added sponge commands and dependencies
OllieMartin Apr 16, 2020
d34e2b5
Did some slight package refactoring
OllieMartin Apr 16, 2020
6d7098f
Implemented sponge action listeners
OllieMartin Apr 16, 2020
5105117
Registered all the channel listeners for Sponge
OllieMartin Apr 16, 2020
c810696
Implemented all except the Sponge chat listeners
OllieMartin Apr 16, 2020
46a8274
Added onDisable part for sponge
OllieMartin Apr 16, 2020
3c9150e
Stripped the plugin injector from the old sponge class to fix build
OllieMartin Apr 16, 2020
58bdfb7
Finally got sponge chat formatting to work
OllieMartin Apr 16, 2020
0d9728e
Fixed error where wrong ignore map was used
OllieMartin Apr 17, 2020
2e3a03d
Added code to unhide channel if chatting directly into it
OllieMartin Apr 17, 2020
7e4ca11
Added better regular expression error handling
OllieMartin Apr 17, 2020
f113516
Bit the bullet. Deleted all the legacy code.
OllieMartin Apr 17, 2020
005858b
Refactored package naming
OllieMartin Apr 17, 2020
5a2a85e
Incremented version numbers to 1.8.2
OllieMartin Apr 17, 2020
94dfe54
Tweaked versioning
OllieMartin Apr 17, 2020
d6161c5
Fixed the issues implementing the chat manager for sponge
OllieMartin Apr 17, 2020
ec4f704
Fixed an error that replaced the whole chat format with the message
OllieMartin Apr 17, 2020
f84e55b
Fixed null pointer error in the Channel class caused by null server
OllieMartin Apr 20, 2020
db450c7
Added some more null pointer checks
OllieMartin Apr 20, 2020
e47440f
Added Proxy API class
OllieMartin Apr 20, 2020
326cec5
Merge branch 'master' of https://github.com/MultiChat/Development.git…
OllieMartin Apr 25, 2020
980d250
Merge branch 'minorchanges' of
OllieMartin Apr 25, 2020
a41876b
Added support for sponge game reload event
OllieMartin Apr 25, 2020
8b994c5
Added latest snapshot
OllieMartin Apr 25, 2020
81000b9
Ready for pre 1
OllieMartin Apr 25, 2020
ee5d9b1
Added pre release jar of 1.8.2
OllieMartin Apr 25, 2020
d1a22a1
Added new Apache dependency for database connection pooling
OllieMartin Apr 25, 2020
3ecd31d
First attempt to use pooled database connections
OllieMartin Apr 26, 2020
b54f80a
Fixed a bug in the local database setup manager
OllieMartin Apr 26, 2020
7126813
Swapped out to Hikari from Apache
OllieMartin Apr 26, 2020
dc08251
Fixed a bug where pool size was not set correctly
OllieMartin Apr 26, 2020
b83d03c
Fixed issue setting pool size
OllieMartin Apr 26, 2020
7a0ac5a
Fixed null pointers in the closing of simple connections
OllieMartin Apr 26, 2020
2ffaa41
Try to reduce size of jar
OllieMartin Apr 26, 2020
88b674d
Added some attempts to fix null pointers / give more debug
OllieMartin Apr 26, 2020
d4a4914
Removed old placeholders for %M% and %MODE% which already were removed
OllieMartin Apr 26, 2020
c7059ae
Tried to cut down a tiny bit on the number of db requests being made
OllieMartin Apr 26, 2020
5a16f4b
Removed old pre 4
OllieMartin Apr 26, 2020
1fd991e
New pre.4
OllieMartin Apr 26, 2020
f6af1ff
Re-implemented the change on spigot to let pxe work when no one online
OllieMartin Apr 27, 2020
f6f0e9f
Revered that change as it results in duplicate messages
OllieMartin Apr 27, 2020
852d34b
Attempted to add RegexChannelForcers to the local configs
OllieMartin Apr 27, 2020
d9097f0
Attempted to implement regex channel forcing on Spigot
OllieMartin Apr 27, 2020
0b31ed1
Added regex channel forcing check to Sponge
OllieMartin Apr 27, 2020
19f74c7
Attempt to fix issues with RegexChannelForcing
OllieMartin Apr 27, 2020
54e89ff
Fixed issue with chat queues
OllieMartin Apr 27, 2020
32deb4e
Added debug messages for multichat placeholders
OllieMartin Apr 27, 2020
bfef9b6
Made regex channel forcer config only need to use & not §
OllieMartin Apr 27, 2020
b941cf9
Added debug messages for RegexChannelForcer and incremented to 1.9
OllieMartin Apr 27, 2020
1a5a2d2
Updated default config files
OllieMartin Apr 27, 2020
41f30d4
Translate "Channel Control" in spigotconfig_fr.yml
metzg Apr 28, 2020
2c44129
Merge pull request #96 from metzg/patch-1
OllieMartin Apr 28, 2020
6badd40
Tweaks to config files
OllieMartin Apr 28, 2020
86a64ed
Added examples of Essentials regex channel forcing to the config
OllieMartin Apr 28, 2020
5cea03d
Made sponge config up to date with spigot config
OllieMartin Apr 28, 2020
8b955b5
First attempt (which will likely not work at all) to do new sponge chat
OllieMartin Apr 28, 2020
6a61f16
Fixed infinite recursion error...
OllieMartin Apr 28, 2020
61ae0f9
Try to fix UnmodifiableIterator issue with recipient list
OllieMartin Apr 28, 2020
479de04
Attempt to get regex channel forcers to load on sponge
OllieMartin Apr 28, 2020
6e5bc4b
Added some debug messages for the Channel Forcers
OllieMartin Apr 28, 2020
19e559e
New attempt to load regex channel forcers
OllieMartin Apr 28, 2020
7598148
Fixed Spigot and Sponge MultiChatFormat overriding
OllieMartin Apr 28, 2020
095119f
Attempt to implement MultiChatPlaceholders in Sponge
OllieMartin Apr 28, 2020
e44b8d4
Attempt to fix colour code issue in placeholders on sponge
OllieMartin Apr 28, 2020
bdc5df5
Beta 2 release for MultiChat 1.9
OllieMartin Apr 28, 2020
4df6b09
Refactored spigot and sponge chat events to common classes
OllieMartin Apr 28, 2020
b4afda4
Mark plugin messages as handled on bungee
OllieMartin Apr 29, 2020
658702e
Added some kind of thread safety to the local data store
OllieMartin Apr 29, 2020
f88a8a7
Merge pull request #97 from MultiChat/spongechat
OllieMartin Apr 29, 2020
0a959c1
Spigot and Sponge now use shared config file
OllieMartin Apr 29, 2020
1b51190
Updated plugin ids/names to multichat for universal consistency
OllieMartin Apr 29, 2020
aaf10df
Reverted cases on spigot and bungee
OllieMartin Apr 29, 2020
a2fca4d
Standardised naming of database file and of nickname data file
OllieMartin Apr 29, 2020
bd5cef3
Fixed bug where database name was not registered correctly
OllieMartin Apr 29, 2020
fe18840
PRE 2
OllieMartin May 1, 2020
50a7f82
Fixed naming convention for Spigot
OllieMartin May 1, 2020
fcf2702
Added link regex in config file for chat control
OllieMartin May 1, 2020
498aa4a
Fixed issue with regex in config file
OllieMartin May 1, 2020
c3290e9
Pre release 3 adds custom link regex option in config file
OllieMartin May 1, 2020
ef018c1
First attempt to add permissions in chat control
OllieMartin May 1, 2020
55cda38
Updated fr translations
OllieMartin May 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 64 additions & 10 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.4</version>
<version>1.9-snapshot.20.5.1</version>
<build>
<plugins>
<plugin>
Expand All @@ -20,8 +20,8 @@
<configuration>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>xyz.olivermartin.bungee</shadedPattern>
<pattern>com.zaxxer.hikari</pattern>
<shadedPattern>xyz.olivermartin.shadedlib.hikari</shadedPattern>
</relocation>
</relocations>
</configuration>
Expand Down Expand Up @@ -67,12 +67,22 @@
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.27.2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spongepowered</groupId>
<artifactId>spongeapi</artifactId>
<version>7.1.0</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
<exclusion>
<artifactId>error_prone_annotations</artifactId>
<groupId>com.google.errorprone</groupId>
Expand Down Expand Up @@ -134,7 +144,7 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.14-SNAPSHOT</version>
<version>1.15-SNAPSHOT</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand All @@ -153,12 +163,24 @@
<artifactId>bungeecord-protocol</artifactId>
<groupId>net.md-5</groupId>
</exclusion>
<exclusion>
<artifactId>netty-transport-native-unix-common</artifactId>
<groupId>io.netty</groupId>
</exclusion>
<exclusion>
<artifactId>snakeyaml</artifactId>
<groupId>org.yaml</groupId>
</exclusion>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
</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>
<exclusions>
Expand All @@ -178,22 +200,30 @@
<artifactId>bungeecord-protocol</artifactId>
<groupId>net.md-5</groupId>
</exclusion>
<exclusion>
<artifactId>netty-transport-native-unix-common</artifactId>
<groupId>io.netty</groupId>
</exclusion>
<exclusion>
<artifactId>snakeyaml</artifactId>
<groupId>org.yaml</groupId>
</exclusion>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
</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>
<exclusions>
<exclusion>
<artifactId>commons-lang</artifactId>
<groupId>commons-lang</groupId>
</exclusion>
<exclusion>
<artifactId>snakeyaml</artifactId>
<groupId>org.yaml</groupId>
</exclusion>
<exclusion>
<artifactId>gson</artifactId>
<groupId>com.google.code.gson</groupId>
Expand All @@ -202,6 +232,14 @@
<artifactId>bungeecord-chat</artifactId>
<groupId>net.md-5</groupId>
</exclusion>
<exclusion>
<artifactId>snakeyaml</artifactId>
<groupId>org.yaml</groupId>
</exclusion>
<exclusion>
<artifactId>guava</artifactId>
<groupId>com.google.guava</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand All @@ -222,6 +260,22 @@
<version>2.9.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.rojo8399</groupId>
<artifactId>PlaceholderAPI</artifactId>
<version>master-SNAPSHOT</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<artifactId>reflections</artifactId>
<groupId>org.reflections</groupId>
</exclusion>
<exclusion>
<artifactId>configurate-hocon</artifactId>
<groupId>ninja.leaping.configurate</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

41 changes: 29 additions & 12 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.8.1</version>
<version>1.9-snapshot.20.5.1</version>

<repositories>

Expand Down Expand Up @@ -48,11 +48,27 @@

<build>
<plugins>
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version> <configuration> <relocations> <relocation> <pattern>org.bstats</pattern>
<shadedPattern>xyz.olivermartin.bungee</shadedPattern> </relocation> </relocations>
</configuration> <executions> <execution> <phase>package</phase> <goals>
<goal>shade</goal> </goals> </execution> </executions> </plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<relocations>
<relocation>
<pattern>com.zaxxer.hikari</pattern>
<shadedPattern>xyz.olivermartin.shadedlib.hikari</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -68,17 +84,17 @@

<dependencies>

<!-- <dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bungeecord</artifactId>
<version>1.4</version>
<scope>compile</scope>
</dependency> -->
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>2.6.1</version>
</dependency>

<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.27.2.1</version>
<scope>provided</scope>
</dependency>

<dependency>
Expand Down Expand Up @@ -129,6 +145,7 @@
<groupId>com.github.rojo8399</groupId>
<artifactId>PlaceholderAPI</artifactId>
<version>master-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

</dependencies>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added multichat/releases/1.9/multichat-1.9-beta.1.jar
Binary file not shown.
Binary file added multichat/releases/1.9/multichat-1.9-beta.2.jar
Binary file not shown.
Binary file added multichat/releases/1.9/multichat-1.9-beta.3.jar
Binary file not shown.
Binary file added multichat/releases/1.9/multichat-1.9-pre.1.jar
Binary file not shown.
Binary file added multichat/releases/1.9/multichat-1.9-pre.2.jar
Binary file not shown.
Binary file added multichat/releases/1.9/multichat-1.9-pre.3.jar
Binary file not shown.
Binary file added multichat/releases/1.9/multichat-1.9-pre.4.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.io.ObjectOutputStream;
import java.util.Optional;
import java.util.UUID;
import java.util.regex.PatternSyntaxException;

import net.md_5.bungee.api.ProxyServer;
import net.md_5.bungee.api.config.ServerInfo;
Expand Down Expand Up @@ -166,9 +167,6 @@ public static void sendPlayerChannelMessage(String playerName, String channel, C
oout.writeBoolean(channelObject.isWhitelistMembers());
oout.writeObject(channelObject.getMembers());




} catch (IOException e) {
e.printStackTrace();
}
Expand Down Expand Up @@ -199,6 +197,8 @@ public static void onPluginMessage(PluginMessageEvent ev) {

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

ev.setCancelled(true);

DebugManager.log("{multichat:chat} Got a plugin message");

ByteArrayInputStream stream = new ByteArrayInputStream(ev.getData());
Expand All @@ -221,7 +221,7 @@ public static void onPluginMessage(PluginMessageEvent ev) {
ProxiedPlayer player = ProxyServer.getInstance().getPlayer(uuid);

if (player == null) {
DebugManager.log("{multichat:chat} Could not get player! Abandoning chat message...");
DebugManager.log("{multichat:chat} Could not get player! Abandoning chat message... (Is IP-Forwarding on?)");
return;
}

Expand All @@ -246,6 +246,8 @@ public static void onPluginMessage(PluginMessageEvent ev) {

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

ev.setCancelled(true);

ByteArrayInputStream stream = new ByteArrayInputStream(ev.getData());
DataInputStream in = new DataInputStream(stream);

Expand Down Expand Up @@ -284,6 +286,8 @@ public static void onPluginMessage(PluginMessageEvent ev) {

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

ev.setCancelled(true);

ByteArrayInputStream stream = new ByteArrayInputStream(ev.getData());
DataInputStream in = new DataInputStream(stream);

Expand Down Expand Up @@ -322,6 +326,8 @@ public static void onPluginMessage(PluginMessageEvent ev) {

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

ev.setCancelled(true);

ByteArrayInputStream stream = new ByteArrayInputStream(ev.getData());
DataInputStream in = new DataInputStream(stream);

Expand Down Expand Up @@ -360,6 +366,8 @@ public static void onPluginMessage(PluginMessageEvent ev) {

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

ev.setCancelled(true);

DebugManager.log("[multichat:dn] Got an incoming channel message!");

ByteArrayInputStream stream = new ByteArrayInputStream(ev.getData());
Expand Down Expand Up @@ -400,6 +408,8 @@ public static void onPluginMessage(PluginMessageEvent ev) {

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

ev.setCancelled(true);

ByteArrayInputStream stream = new ByteArrayInputStream(ev.getData());
DataInputStream in = new DataInputStream(stream);

Expand Down Expand Up @@ -444,6 +454,8 @@ public static void onPluginMessage(PluginMessageEvent ev) {

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

ev.setCancelled(true);

DebugManager.log("[multichat:pxe] Got an incoming pexecute message!");

ByteArrayInputStream stream = new ByteArrayInputStream(ev.getData());
Expand All @@ -463,6 +475,8 @@ public static void onPluginMessage(PluginMessageEvent ev) {

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

ev.setCancelled(true);

DebugManager.log("[multichat:ppxe] Got an incoming pexecute message (for a player)!");

ByteArrayInputStream stream = new ByteArrayInputStream(ev.getData());
Expand All @@ -488,6 +502,8 @@ public static void onPluginMessage(PluginMessageEvent ev) {

} catch (IOException e) {
e.printStackTrace();
} catch (PatternSyntaxException e2) {
MessageManager.sendMessage(ProxyServer.getInstance().getConsole(), "command_execute_regex");
}

}
Expand Down
Loading