Skip to content

Commit 194b2d4

Browse files
committed
fix version injection
1 parent 86656dc commit 194b2d4

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.time.ZoneOffset
33

44
plugins {
55
java
6-
id("net.raphimc.class-token-replacer") version("1.1.3")
6+
id("net.raphimc.class-token-replacer") version("1.1.4")
77
idea
88
}
99

src/main/java/org/example/ExamplePlugin.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
import org.example.module.ExampleModule;
1010
import org.slf4j.Logger;
1111

12-
// to indicate any MC version: @Plugin(mcVersions = "*")
1312
@Plugin(
1413
id = "example-plugin",
1514
version = "${version}",
1615
description = "ZenithProxy Example Plugin",
1716
url = "https://github.com/rfresh2/ZenithProxyExamplePlugin",
1817
authors = {"rfresh2"},
19-
mcVersions = {"1.21.0", "1.21.4"}
18+
mcVersions = {"1.21.0"} // to indicate any MC version: @Plugin(mcVersions = "*")
2019
)
2120
public class ExamplePlugin implements ZenithProxyPlugin {
2221
// public static for easy access from modules and commands
@@ -26,7 +25,7 @@ public class ExamplePlugin implements ZenithProxyPlugin {
2625

2726
@Override
2827
public void onLoad(PluginAPI pluginAPI) {
29-
LOG = pluginAPI.getLogger(this);
28+
LOG = pluginAPI.getLogger();
3029
LOG.info("Example Plugin loading...");
3130
// initialize any configurations before modules or commands might need to read them
3231
PLUGIN_CONFIG = pluginAPI.registerConfig("example-plugin", ExampleConfig.class);

0 commit comments

Comments
 (0)