diff --git a/Extensions.md b/Extensions.md index 190c0bb..eb814cd 100644 --- a/Extensions.md +++ b/Extensions.md @@ -152,6 +152,14 @@ protected void onStartConnection() { If the _onClick_ method is overridden by your extension, G-Earth will display a green "Start" button next to your extension and the function will get called on-click. For form extensions, this option is automatically used to open the GUI. For non-gui extensions, this is an additional feature you could use. +```java +@Override +protected void onClick() { + // the user clicked this extension! I must do something relevant here +} +``` + + ### HashSupport _HashSupport_ allows us to use hashes/names in order to intercept and send packets, using the aforementioned methods.