mirror of https://github.com/PaperMC/Paper.git
12 lines
887 B
Diff
12 lines
887 B
Diff
--- a/net/minecraft/server/level/TicketType.java
|
|
+++ b/net/minecraft/server/level/TicketType.java
|
|
@@ -23,6 +23,8 @@
|
|
public static final TicketType<BlockPos> PORTAL = create("portal", Vec3i::compareTo, 300);
|
|
public static final TicketType<Integer> POST_TELEPORT = create("post_teleport", Integer::compareTo, 5);
|
|
public static final TicketType<ChunkPos> UNKNOWN = create("unknown", Comparator.comparingLong(ChunkPos::toLong), 1);
|
|
+ public static final TicketType<Unit> PLUGIN = create("plugin", (a, b) -> 0); // CraftBukkit
|
|
+ public static final TicketType<org.bukkit.plugin.Plugin> PLUGIN_TICKET = create("plugin_ticket", (plugin1, plugin2) -> plugin1.getClass().getName().compareTo(plugin2.getClass().getName())); // CraftBukkit
|
|
|
|
public static <T> TicketType<T> create(String s, Comparator<T> comparator) {
|
|
return new TicketType<>(s, comparator, 0L);
|