aboutsummaryrefslogtreecommitdiff
path: root/versions/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'versions/src/main')
-rw-r--r--versions/src/main/java/cc/polyfrost/oneconfig/test/TestConfig_Test.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/versions/src/main/java/cc/polyfrost/oneconfig/test/TestConfig_Test.java b/versions/src/main/java/cc/polyfrost/oneconfig/test/TestConfig_Test.java
index 09b3fe5..3b7490c 100644
--- a/versions/src/main/java/cc/polyfrost/oneconfig/test/TestConfig_Test.java
+++ b/versions/src/main/java/cc/polyfrost/oneconfig/test/TestConfig_Test.java
@@ -25,6 +25,22 @@ public class TestConfig_Test extends Config {
)
public static boolean testCheckBox = true;
+ @Button(
+ name = "hello",
+ text = "click"
+ )
+ private void doSomething() {
+ UChat.chat("i was called from a nonstatic method");
+ }
+
+ @Button(
+ name = "hello2",
+ text = "click"
+ )
+ private static void doSomethingElse() {
+ UChat.chat("i was called from a static method");
+ }
+
@Info(
text = "Test Info",
type = InfoType.ERROR,