Skip to content

Commit a394760

Browse files
authored
Update VersionUtil and /ess version (#5036)
1 parent 5f48cde commit a394760

4 files changed

Lines changed: 25 additions & 2 deletions

File tree

Essentials/src/main/java/com/earth2me/essentials/Essentials.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ public void onEnable() {
267267
case DANGEROUS_FORK:
268268
getLogger().severe(tl("serverUnsupportedDangerous"));
269269
break;
270+
case STUPID_PLUGIN:
271+
getLogger().severe(tl("serverUnsupportedDumbPlugins"));
272+
break;
270273
case UNSTABLE:
271274
getLogger().severe(tl("serverUnsupportedMods"));
272275
break;

Essentials/src/main/java/com/earth2me/essentials/commands/Commandessentials.java

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ public class Commandessentials extends EssentialsCommand {
7676
"PermissionsEx", // permissions (unsupported)
7777
"GroupManager", // permissions (unsupported)
7878
"bPermissions", // permissions (unsupported)
79-
"DiscordSRV" // potential for issues if EssentialsXDiscord is installed
79+
"DiscordSRV", // potential for issues if EssentialsXDiscord is installed
80+
81+
// Brain-dead chat signing bypass that break EssentialsChat
82+
"AntiPopup",
83+
"NoChatReports",
84+
"NoEncryption"
8085
);
8186
private static final List<String> officialPlugins = Arrays.asList(
8287
"EssentialsAntiBuild",
@@ -90,7 +95,12 @@ public class Commandessentials extends EssentialsCommand {
9095
private static final List<String> warnPlugins = Arrays.asList(
9196
"PermissionsEx",
9297
"GroupManager",
93-
"bPermissions"
98+
"bPermissions",
99+
100+
// Brain-dead chat signing bypass that break EssentialsChat
101+
"AntiPopup",
102+
"NoChatReports",
103+
"NoEncryption"
94104
);
95105
private transient TuneRunnable currentTune = null;
96106

@@ -683,6 +693,9 @@ private void runVersion(final Server server, final CommandSource sender, final S
683693
case DANGEROUS_FORK:
684694
sender.sendMessage(ChatColor.DARK_RED + tl("serverUnsupportedDangerous"));
685695
break;
696+
case STUPID_PLUGIN:
697+
sender.sendMessage(ChatColor.DARK_RED + tl("serverUnsupportedDumbPlugins"));
698+
break;
686699
case UNSTABLE:
687700
sender.sendMessage(ChatColor.DARK_RED + tl("serverUnsupportedMods"));
688701
break;

Essentials/src/main/java/com/earth2me/essentials/utils/VersionUtil.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ public final class VersionUtil {
6161
// KibblePatcher - Dangerous bytecode editor snakeoil whose only use is to break plugins
6262
builder.put("net.kibblelands.server.FastMath", SupportStatus.DANGEROUS_FORK);
6363

64+
// Brain-dead chat signing bypass that break EssentialsChat
65+
builder.put("screw.microsoft.antipopup.AntiPopup", SupportStatus.STUPID_PLUGIN);
66+
builder.put("ml.tcoded.nochatreports.NoChatReportsSpigot", SupportStatus.STUPID_PLUGIN);
67+
builder.put("me.doclic.noencryption.NoEncryption", SupportStatus.STUPID_PLUGIN);
68+
6469
// Akarin - Dangerous patch history;
6570
// * Potentially unsafe saving of nms.JsonList
6671
builder.put("io.akarin.server.Config", SupportStatus.DANGEROUS_FORK);
@@ -324,6 +329,7 @@ public enum SupportStatus {
324329
FULL(true),
325330
LIMITED(true),
326331
DANGEROUS_FORK(false),
332+
STUPID_PLUGIN(false),
327333
NMS_CLEANROOM(false),
328334
UNSTABLE(false),
329335
OUTDATED(false)

Essentials/src/main/resources/messages.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,7 @@ serverUnsupportedClass=Status determining class\: {0}
10791079
serverUnsupportedCleanroom=You are running a server that does not properly support Bukkit plugins that rely on internal Mojang code. Consider using an Essentials replacement for your server software.
10801080
serverUnsupportedDangerous=You are running a server fork that is known to be extremely dangerous and lead to data loss. It is strongly recommended you switch to a more stable server software like Paper.
10811081
serverUnsupportedLimitedApi=You are running a server with limited API functionality. EssentialsX will still work, but certain features may be disabled.
1082+
serverUnsupportedDumbPlugins=You are using plugins known to cause severe issues with EssentialsX and other plugins.
10821083
serverUnsupportedMods=You are running a server that does not properly support Bukkit plugins. Bukkit plugins should not be used with Forge/Fabric mods! For Forge: Consider using ForgeEssentials, or SpongeForge + Nucleus.
10831084
setBal=\u00a7aYour balance was set to {0}.
10841085
setBalOthers=\u00a7aYou set {0}\u00a7a''s balance to {1}.

0 commit comments

Comments
 (0)