mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-18 00:25:39 +01:00
20 lines
1009 B
Diff
20 lines
1009 B
Diff
--- a/net/minecraft/server/CommandReload.java
|
|
+++ b/net/minecraft/server/CommandReload.java
|
|
@@ -36,6 +36,16 @@
|
|
return collection1;
|
|
}
|
|
|
|
+ // CraftBukkit start
|
|
+ public static void reload(MinecraftServer minecraftserver) {
|
|
+ ResourcePackRepository<?> resourcepackrepository = minecraftserver.getResourcePackRepository();
|
|
+ SaveData savedata = minecraftserver.getSaveData();
|
|
+ Collection<String> collection = resourcepackrepository.d();
|
|
+ Collection<String> collection1 = a(resourcepackrepository, savedata, collection);
|
|
+ minecraftserver.a(collection1);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
+
|
|
public static void a(com.mojang.brigadier.CommandDispatcher<CommandListenerWrapper> com_mojang_brigadier_commanddispatcher) {
|
|
com_mojang_brigadier_commanddispatcher.register((LiteralArgumentBuilder) ((LiteralArgumentBuilder) CommandDispatcher.a("reload").requires((commandlistenerwrapper) -> {
|
|
return commandlistenerwrapper.hasPermission(2);
|