Skip to content

Commit ce59a23

Browse files
committed
Fix: #4 + other fix
1 parent db2a3ce commit ce59a23

11 files changed

+54
-68
lines changed

patches/plugins/0001-Rebrand.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From fec65c4dc77478519e04a97bb3bae8de77eb76bf Mon Sep 17 00:00:00 2001
1+
From 70dc23a27e2485fcdd2ede9680e05ac7ad185932 Mon Sep 17 00:00:00 2001
22
From: Euphyllia Bierque <[email protected]>
3-
Date: Sun, 9 Feb 2025 20:29:20 +0100
3+
Date: Tue, 18 Feb 2025 14:37:38 +0100
44
Subject: [PATCH 01/11] Rebrand
55

66
---
@@ -251,5 +251,5 @@ index 8a764dff0..68eab95ce 100644
251251

252252
essentials {
253253
--
254-
2.47.1.windows.2
254+
2.48.1.windows.1
255255

patches/plugins/0002-Teleport-to-teleportAsync.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From 98d6e5663f4f8b6bd53a6a9f7ae0761ac308a38b Mon Sep 17 00:00:00 2001
1+
From 5ab19a7dfc0aeaf5c7650ec7d02f5f7459ec5835 Mon Sep 17 00:00:00 2001
22
From: Euphyllia Bierque <[email protected]>
3-
Date: Sun, 9 Feb 2025 20:29:20 +0100
3+
Date: Tue, 18 Feb 2025 14:37:38 +0100
44
Subject: [PATCH 02/11] Teleport to teleportAsync
55

66
---
@@ -49,5 +49,5 @@ index fc98e97e1..4d0cedd55 100644
4949
if (ess.getSettings().isTeleportToCenterLocation()) {
5050
loc = LocationUtil.getRoundedDestination(loc);
5151
--
52-
2.47.1.windows.2
52+
2.48.1.windows.1
5353

patches/plugins/0003-Replace-BukkitRunnable-to-FoliaRunnable.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From ace0908d0226908ca328e898b0f3385fd84da423 Mon Sep 17 00:00:00 2001
1+
From d2924bb5299790613c836b768c5e137ad600c623 Mon Sep 17 00:00:00 2001
22
From: Euphyllia Bierque <[email protected]>
3-
Date: Sun, 9 Feb 2025 20:29:21 +0100
3+
Date: Tue, 18 Feb 2025 14:37:39 +0100
44
Subject: [PATCH 03/11] Replace BukkitRunnable to FoliaRunnable
55

66
---
@@ -317,5 +317,5 @@ index fa97ff2ff..03989c0de 100644
317317
this.sound = sound;
318318
this.players = players;
319319
--
320-
2.47.1.windows.2
320+
2.48.1.windows.1
321321

patches/plugins/0004-Replace-scheduler.patch

Lines changed: 24 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From 5db4eeceb5e3164405a49f6f3f2b632961e5db8c Mon Sep 17 00:00:00 2001
1+
From de99b1c42e4bc9459ed7c7662e867db09b246b86 Mon Sep 17 00:00:00 2001
22
From: Euphyllia Bierque <[email protected]>
3-
Date: Sun, 9 Feb 2025 20:29:22 +0100
3+
Date: Tue, 18 Feb 2025 14:37:39 +0100
44
Subject: [PATCH 04/11] Replace scheduler
55

66
---
@@ -21,7 +21,7 @@ Subject: [PATCH 04/11] Replace scheduler
2121
.../essentials/commands/Commandcreatekit.java | 2 +-
2222
.../commands/Commandessentials.java | 14 ++++----
2323
.../commands/Commandkittycannon.java | 4 +--
24-
.../essentials/commands/Commandmail.java | 22 ++++++++-----
24+
.../essentials/commands/Commandmail.java | 24 +++++++++-----
2525
.../essentials/commands/Commandnuke.java | 20 ++++++-----
2626
.../essentials/commands/Commandseen.java | 6 ++--
2727
.../essentials/commands/Commandskull.java | 6 ++--
@@ -47,12 +47,12 @@ Subject: [PATCH 04/11] Replace scheduler
4747
.../discordlink/rolesync/RoleSyncManager.java | 6 ++--
4848
.../src/main/resources/plugin.yml | 1 +
4949
EssentialsGeoIP/src/main/resources/plugin.yml | 1 +
50-
.../src/main/resources/plugin.yml | 21 ++++++------
50+
.../src/main/resources/plugin.yml | 1 +
5151
.../spawn/EssentialsSpawnPlayerListener.java | 12 +++----
5252
EssentialsSpawn/src/main/resources/plugin.yml | 1 +
5353
.../xmpp/EssentialsXMPPPlayerListener.java | 6 ++--
5454
.../earth2me/essentials/xmpp/XMPPManager.java | 2 +-
55-
48 files changed, 211 insertions(+), 152 deletions(-)
55+
48 files changed, 202 insertions(+), 143 deletions(-)
5656

5757
diff --git a/Essentials/src/main/java/com/earth2me/essentials/AsyncTeleport.java b/Essentials/src/main/java/com/earth2me/essentials/AsyncTeleport.java
5858
index 4d0cedd55..9aa6ef062 100644
@@ -537,7 +537,7 @@ index df60ff776..72e2f2001 100644
537537
}
538538

539539
diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandbalancetop.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandbalancetop.java
540-
index 6ded4a197..eed0d7865 100644
540+
index 6ded4a197..341201bfc 100644
541541
--- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandbalancetop.java
542542
+++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandbalancetop.java
543543
@@ -43,7 +43,7 @@ public class Commandbalancetop extends EssentialsCommand {
@@ -581,7 +581,7 @@ index 6ded4a197..eed0d7865 100644
581581
}
582582

583583
- ess.runTaskAsynchronously(new Viewer(sender, page, force));
584-
+ ess.getAsyncScheduler().runNow(ess, scheduledTask -> new Viewer(sender, page.get(), force.get())); // Euphyllia
584+
+ ess.getAsyncScheduler().runNow(ess, scheduledTask -> new Viewer(sender, page.get(), force.get()).run()); // Euphyllia
585585
}
586586

587587
@Override
@@ -702,18 +702,21 @@ index 18397f82f..c25c5f91c 100644
702702
}
703703
}
704704
diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandmail.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandmail.java
705-
index 7dad73063..27b153ee6 100644
705+
index 7dad73063..d71af6477 100644
706706
--- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandmail.java
707707
+++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandmail.java
708-
@@ -151,7 +151,7 @@ public class Commandmail extends EssentialsCommand {
708+
@@ -151,9 +151,9 @@ public class Commandmail extends EssentialsCommand {
709709
if (!user.isAuthorized("essentials.mail.sendall")) {
710710
throw new TranslatableException("noPerm", "essentials.mail.sendall");
711711
}
712712
- ess.runTaskAsynchronously(new SendAll(user,
713713
+ ess.getAsyncScheduler().runNow(ess, scheduledTask -> new SendAll(user, // Euphyllia
714714
FormatUtil.formatMessage(user, "essentials.mail",
715-
StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 1)))), 0));
715+
- StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 1)))), 0));
716+
+ StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 1)))), 0).run()); // Euphyllia
716717
user.sendTl("mailSent");
718+
return;
719+
}
717720
@@ -161,9 +161,15 @@ public class Commandmail extends EssentialsCommand {
718721
if (!user.isAuthorized("essentials.mail.sendtempall")) {
719722
throw new TranslatableException("noPerm", "essentials.mail.sendtempall");
@@ -725,7 +728,7 @@ index 7dad73063..27b153ee6 100644
725728
+ try {
726729
+ new SendAll(user, // Euphyllia
727730
+ FormatUtil.formatMessage(user, "essentials.mail",
728-
+ StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 2)))), DateUtil.parseDateDiff(args[1], true));
731+
+ StringUtil.sanitizeString(FormatUtil.stripFormat(getFinalArg(args, 2)))), DateUtil.parseDateDiff(args[1], true)).run(); // Euphyllia
729732
+ } catch (Exception e) {
730733
+ throw new RuntimeException(e);
731734
+ }
@@ -738,7 +741,7 @@ index 7dad73063..27b153ee6 100644
738741
}
739742

740743
- ess.runTaskAsynchronously(new ClearAll());
741-
+ ess.getAsyncScheduler().runNow(ess, scheduledTask -> new ClearAll()); // Euphyllia
744+
+ ess.getAsyncScheduler().runNow(ess, scheduledTask -> new ClearAll().run()); // Euphyllia
742745
user.sendTl("mailClearedAll");
743746
return;
744747

@@ -747,7 +750,7 @@ index 7dad73063..27b153ee6 100644
747750
return;
748751
} else if (args.length >= 1 && "clearall".equalsIgnoreCase(args[0])){
749752
- ess.runTaskAsynchronously(new ClearAll());
750-
+ ess.getAsyncScheduler().runNow(ess, scheduledTask -> new ClearAll()); // Euphyllia
753+
+ ess.getAsyncScheduler().runNow(ess, scheduledTask -> new ClearAll().run()); // Euphyllia
751754
sender.sendTl("mailClearedAll");
752755
return;
753756
} else if (args.length >= 3 && "send".equalsIgnoreCase(args[0])) {
@@ -756,13 +759,13 @@ index 7dad73063..27b153ee6 100644
756759
return;
757760
} else if (args.length >= 2 && "sendall".equalsIgnoreCase(args[0])) {
758761
- ess.runTaskAsynchronously(new SendAll(Console.getInstance(), FormatUtil.replaceFormat(getFinalArg(args, 1)), 0));
759-
+ ess.getAsyncScheduler().runNow(ess, scheduledTask -> new SendAll(Console.getInstance(), FormatUtil.replaceFormat(getFinalArg(args, 1)), 0)); // Euphyllia
762+
+ ess.getAsyncScheduler().runNow(ess, scheduledTask -> new SendAll(Console.getInstance(), FormatUtil.replaceFormat(getFinalArg(args, 1)), 0).run()); // Euphyllia
760763
sender.sendTl("mailSent");
761764
return;
762765
} else if (args.length >= 3 && "sendtempall".equalsIgnoreCase(args[0])) {
763766
final long dateDiff = DateUtil.parseDateDiff(args[1], true);
764767
- ess.runTaskAsynchronously(new SendAll(Console.getInstance(), FormatUtil.replaceFormat(getFinalArg(args, 2)), dateDiff));
765-
+ ess.getAsyncScheduler().runNow(ess, scheduledTask -> new SendAll(Console.getInstance(), FormatUtil.replaceFormat(getFinalArg(args, 2)), dateDiff)); // Euphyllia
768+
+ ess.getAsyncScheduler().runNow(ess, scheduledTask -> new SendAll(Console.getInstance(), FormatUtil.replaceFormat(getFinalArg(args, 2)), dateDiff).run()); // Euphyllia
766769
sender.sendTl("mailSent");
767770
return;
768771
} else if (args.length >= 2) {
@@ -1301,30 +1304,13 @@ index 2ddee7b12..e3346d465 100644
13011304
api-version: 1.13
13021305
+folia-supported: true # Euphyllia
13031306
diff --git a/EssentialsProtect/src/main/resources/plugin.yml b/EssentialsProtect/src/main/resources/plugin.yml
1304-
index 65764be4a..c681f4683 100644
1307+
index 65764be4a..4c361b0b2 100644
13051308
--- a/EssentialsProtect/src/main/resources/plugin.yml
13061309
+++ b/EssentialsProtect/src/main/resources/plugin.yml
1307-
@@ -1,10 +1,11 @@
1308-
-# This determines the command prefix when there are conflicts (/name:home, /name:help, etc.)
1309-
-name: EssentialsProtect
1310-
-main: com.earth2me.essentials.protect.EssentialsProtect
1311-
-# Note to developers: This next line cannot change, or the automatic versioning system will break.
1312-
-version: ${full.version}
1313-
-website: https://essentialsx.net/
1314-
-description: Provides protection for various parts of the world.
1315-
-authors: [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology, KHobbits, drtshock]
1316-
-softdepend: [Essentials]
1317-
-api-version: 1.13
1318-
+# This determines the command prefix when there are conflicts (/name:home, /name:help, etc.)
1319-
+name: EssentialsProtect
1320-
+main: com.earth2me.essentials.protect.EssentialsProtect
1321-
+# Note to developers: This next line cannot change, or the automatic versioning system will break.
1322-
+version: ${full.version}
1323-
+website: https://essentialsx.net/
1324-
+description: Provides protection for various parts of the world.
1325-
+authors: [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology, KHobbits, drtshock]
1326-
+softdepend: [Essentials]
1327-
+api-version: 1.13
1310+
@@ -8,3 +8,4 @@ description: Provides protection for various parts of the world.
1311+
authors: [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology, KHobbits, drtshock]
1312+
softdepend: [Essentials]
1313+
api-version: 1.13
13281314
+folia-supported: true # Euphyllia
13291315
\ No newline at end of file
13301316
diff --git a/EssentialsSpawn/src/main/java/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java b/EssentialsSpawn/src/main/java/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
@@ -1437,5 +1423,5 @@ index a5199f921..13e90a733 100644
14371423
parent.getServer().dispatchCommand(Console.getInstance().getCommandSender(), message.substring(1));
14381424
} catch (final Exception ex) {
14391425
--
1440-
2.47.1.windows.2
1426+
2.48.1.windows.1
14411427

patches/plugins/0005-Fix-command-time.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From 0a9e80881f2f0744378efc4890c7fe70e6d09365 Mon Sep 17 00:00:00 2001
1+
From 964b091c1dd7b799d6af6f97d89c459287bb1ff6 Mon Sep 17 00:00:00 2001
22
From: Euphyllia Bierque <[email protected]>
3-
Date: Sun, 9 Feb 2025 20:29:22 +0100
3+
Date: Tue, 18 Feb 2025 14:37:39 +0100
44
Subject: [PATCH 05/11] Fix command time
55

66
---
@@ -59,5 +59,5 @@ index 4e85d7b4c..5d78dc2ce 100644
5959

6060
private void getWorldsTime(final CommandSource sender, final Collection<World> worlds) {
6161
--
62-
2.47.1.windows.2
62+
2.48.1.windows.1
6363

patches/plugins/0006-Fix-dispatch-command.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From 814295f094fd6878508f269f5a913eacd8b3a6f8 Mon Sep 17 00:00:00 2001
1+
From d50077bc9add3132acae81fc1755619003b6fd13 Mon Sep 17 00:00:00 2001
22
From: Euphyllia Bierque <[email protected]>
3-
Date: Sun, 9 Feb 2025 20:29:22 +0100
3+
Date: Tue, 18 Feb 2025 14:37:40 +0100
44
Subject: [PATCH 06/11] Fix dispatch command
55

66
---
@@ -43,5 +43,5 @@ index 2c9753e04..6b81c4d8a 100644
4343
if (spew) {
4444
user.sendTl("kitInvFull");
4545
--
46-
2.47.1.windows.2
46+
2.48.1.windows.1
4747

patches/plugins/0007-Fix-command-gc.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From 4f0f1ca37e038687ea556201da6acf3c9530b9d4 Mon Sep 17 00:00:00 2001
1+
From 2bf7f9adb7e463f1c0b440a6b2515e0250121ad1 Mon Sep 17 00:00:00 2001
22
From: Euphyllia Bierque <[email protected]>
3-
Date: Sun, 9 Feb 2025 20:29:23 +0100
3+
Date: Tue, 18 Feb 2025 14:37:40 +0100
44
Subject: [PATCH 07/11] Fix command gc
55

66
---
@@ -61,5 +61,5 @@ index 16082f3c9..495b27b3f 100644
6161
}
6262
}
6363
--
64-
2.47.1.windows.2
64+
2.48.1.windows.1
6565

patches/plugins/0008-Fix-Stop-Server-task.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From 619baa82d841eb39fcbe7edb71f31df4dc8b3b2d Mon Sep 17 00:00:00 2001
1+
From 2d7cb37384b7ead45c317ed3952d0a838694afa8 Mon Sep 17 00:00:00 2001
22
From: Euphyllia Bierque <[email protected]>
3-
Date: Sun, 9 Feb 2025 20:29:23 +0100
3+
Date: Tue, 18 Feb 2025 14:37:40 +0100
44
Subject: [PATCH 08/11] Fix Stop Server task
55

66
---
@@ -57,5 +57,5 @@ index 07c050e90..0351649bd 100644
5757
Bukkit.getScheduler().runTask(plugin, () -> Bukkit.getPluginManager().callEvent(event));
5858
}*/ // Euphyllia
5959
--
60-
2.47.1.windows.2
60+
2.48.1.windows.1
6161

patches/plugins/0009-Fix-command-killall.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From 3eb2fb31812cef2d73387a1b4d28091a76de22dc Mon Sep 17 00:00:00 2001
1+
From b46c6127cf01ec2f9cfa5d2cc677fd8ba433eb20 Mon Sep 17 00:00:00 2001
22
From: Euphyllia Bierque <[email protected]>
3-
Date: Sun, 9 Feb 2025 20:29:23 +0100
3+
Date: Tue, 18 Feb 2025 14:37:40 +0100
44
Subject: [PATCH 09/11] Fix command killall
55

66
---
@@ -275,5 +275,5 @@ index 65e7ad9a6..444010092 100644
275275
sender.sendTl("removed", removed);
276276
}
277277
--
278-
2.47.1.windows.2
278+
2.48.1.windows.1
279279

patches/plugins/0010-Fix-commands-thor-player.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From 0da4cd479ec08cb496cb9b5d3c7b1b5990a20a29 Mon Sep 17 00:00:00 2001
1+
From 69fa148ae44d2e2ac998aadbe3b303f13f76dca6 Mon Sep 17 00:00:00 2001
22
From: Euphyllia Bierque <[email protected]>
3-
Date: Sun, 9 Feb 2025 20:29:23 +0100
3+
Date: Tue, 18 Feb 2025 14:37:41 +0100
44
Subject: [PATCH 10/11] Fix commands thor player
55

66
---
@@ -41,5 +41,5 @@ index a8a53db62..0daaa87d3 100644
4141
loopOnlinePlayers(server, sender, true, true, args[0], null);
4242
}
4343
--
44-
2.47.1.windows.2
44+
2.48.1.windows.1
4545

0 commit comments

Comments
 (0)