-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default minecraft alias to redirect (#12146)
While the running server will still be using the recently introduced copy-mechanic for vanilla command namespacing, the data converter logic relies on the fact that namespaced aliases were redirects as well. To not break the converted, the commands type now takes a modern flag only set by the running server.
- Loading branch information
Showing
4 changed files
with
57 additions
and
10 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
6 changes: 4 additions & 2 deletions
6
paper-server/patches/sources/net/minecraft/server/ReloadableServerResources.java.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
17 changes: 17 additions & 0 deletions
17
...rc/test/java/io/papermc/paper/command/brigadier/DFUCommandArgumentUpgraderCompatTest.java
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.papermc.paper.command.brigadier; | ||
|
||
import ca.spottedleaf.dataconverter.util.CommandArgumentUpgrader; | ||
import org.bukkit.support.environment.Normal; | ||
import org.junit.jupiter.api.Test; | ||
|
||
@Normal | ||
public class DFUCommandArgumentUpgraderCompatTest { | ||
|
||
@Test | ||
public void testCompatibilityWithCommandArgumentUpgrader() { | ||
// The Command argument upgrader has some specific assumptions about the tree, specifically around | ||
// Attempt to construct it and to that degree its tree of commands. | ||
CommandArgumentUpgrader.upgrader_1_20_4_to_1_20_5(999); | ||
} | ||
|
||
} |
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