Skip to content

Commit e857316

Browse files
Update guis.md
1 parent 709429b commit e857316

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/guis.md

+15
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,18 @@ This feature is **on its way** (90% done)
6363
### Anvil and Sign Input Prompts
6464

6565
This feature is **on its way** (50% done)
66+
67+
## Register your GUI
68+
69+
```java
70+
public class MyPlugin {
71+
public CaramelGui myGui;
72+
73+
public void onEnable() {
74+
Caramel.getInstance().guis.add(myGui = new MyGui());
75+
}
76+
public void onDisable() {
77+
Caramel.getInstance().guis.getGuis().remove(myGui);
78+
}
79+
}
80+
```

0 commit comments

Comments
 (0)