diff options
author | Bjarne Koll <[email protected]> | 2024-06-13 23:45:58 +0200 |
---|---|---|
committer | Jake Potrebic <[email protected]> | 2024-06-16 12:41:36 -0700 |
commit | 8da65d3df2127250dd3c0b9a50fd1e721accd1cc (patch) | |
tree | 1539c10c75e3724f9064ae35cf7d00761d8a34b5 /test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java | |
parent | d9111ccec278132052cebdebca9f1c6dcaba9512 (diff) | |
download | Paper-feature/registry-builders.tar.gz Paper-feature/registry-builders.zip |
Registry buildersfeature/registry-builders
Diffstat (limited to 'test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java')
-rw-r--r-- | test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java b/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java index 671c37fa40..3403534a0f 100644 --- a/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java +++ b/test-plugin/src/main/java/io/papermc/testplugin/TestPlugin.java @@ -1,5 +1,7 @@ package io.papermc.testplugin; +import org.bukkit.GameEvent; +import org.bukkit.Registry; import org.bukkit.event.Listener; import org.bukkit.plugin.java.JavaPlugin; @@ -10,6 +12,9 @@ public final class TestPlugin extends JavaPlugin implements Listener { this.getServer().getPluginManager().registerEvents(this, this); // io.papermc.testplugin.brigtests.Registration.registerViaOnEnable(this); + + final GameEvent gameEvent = Registry.GAME_EVENT.getOrThrow(TestPluginBootstrap.NEW_GAME_EVENT); + System.out.println("custom range: " + gameEvent.getRange()); } } |