generated from PurpurMC/Tentacles
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
197dc0e
commit 4bf4a55
Showing
11 changed files
with
998 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 10 additions & 8 deletions
18
...es/api/0002-Disable-reload-commands.patch → ...es/api/0002-Disable-Reload-Commands.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: MrFishCakes <[email protected]> | ||
Date: Wed, 19 Jul 2023 11:38:35 +0100 | ||
Subject: [PATCH] Disable reload commands | ||
Date: Sat, 29 Jul 2023 22:21:00 +0100 | ||
Subject: [PATCH] Disable Reload Commands | ||
|
||
Disable all reload commands from Bukkit, Spigot, Paper, Purpur and Graphite | ||
|
||
diff --git a/src/main/java/org/bukkit/command/defaults/ReloadCommand.java b/src/main/java/org/bukkit/command/defaults/ReloadCommand.java | ||
index 3ec32b46264cfff857b50129b5e0fa5584943ec6..bc6d1046b6d1cbd10c68d87d8eeaf21f14a10a17 100644 | ||
index 3ec32b46264cfff857b50129b5e0fa5584943ec6..178592221b5262158d9a3196a333cbcb435990c2 100644 | ||
--- a/src/main/java/org/bukkit/command/defaults/ReloadCommand.java | ||
+++ b/src/main/java/org/bukkit/command/defaults/ReloadCommand.java | ||
@@ -21,7 +21,12 @@ public class ReloadCommand extends BukkitCommand { | ||
@@ -21,7 +21,14 @@ public class ReloadCommand extends BukkitCommand { | ||
@Override | ||
public boolean execute(@NotNull CommandSender sender, @NotNull String currentAlias, @NotNull String[] args) { // Paper | ||
if (!testPermission(sender)) return true; | ||
- | ||
+ // Graphite start - Disable reload commands | ||
+ if (Bukkit.getServer().spigot().getGraphiteConfig().getBoolean("server.disable-reload-commands", true)) { | ||
+ Command.broadcastCommandMessage(sender, net.kyori.adventure.text.Component.text("Reload commands have been disabled by Graphite.", net.kyori.adventure.text.format.NamedTextColor.RED)); | ||
+ // Graphite start - Disable Reload Commands | ||
+ if (Bukkit.getServer().spigot().getGraphiteConfig().getBoolean("server-options.server-reloading.disable-commands", true)) { | ||
+ Command.broadcastCommandMessage(sender, net.kyori.adventure.text.minimessage.MiniMessage.miniMessage().deserialize( | ||
+ Bukkit.getServer().spigot().getGraphiteConfig().getString("server-options.server-reloading.disable-commands", | ||
+ "<click:open_url:'https://github.com/GraphiteMC/Graphite/wiki'><red>Reload commands have been disabled by Graphite. Please check the wiki for more information!</click>"))); | ||
+ return true; | ||
+ } | ||
+ // Graphite end - Disable reload commands | ||
+ // Graphite end - Disable Reload Commands | ||
// Paper start - Reload permissions.yml & require confirm | ||
boolean confirmed = System.getProperty("LetMeReload") != null; | ||
if (args.length == 1) { |
2 changes: 1 addition & 1 deletion
2
...api/0003-Additional-enchantment-API.patch → ...api/0003-Additional-Enchantment-API.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: MrFishCakes <[email protected]> | ||
Date: Wed, 26 Jul 2023 21:15:17 +0100 | ||
Subject: [PATCH] Additional enchantment API | ||
Subject: [PATCH] Additional Enchantment API | ||
|
||
|
||
diff --git a/src/main/java/org/bukkit/enchantments/Enchantment.java b/src/main/java/org/bukkit/enchantments/Enchantment.java | ||
|
File renamed without changes.
Oops, something went wrong.