-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90de568
commit d103984
Showing
4 changed files
with
51 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/net/aoba/module/modules/misc/DiscordRPCModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package net.aoba.module.modules.misc; | ||
|
||
import net.aoba.module.Category; | ||
import net.aoba.module.Module; | ||
import net.aoba.utils.discord.RPCManager; | ||
|
||
public class DiscordRPCModule extends Module { | ||
|
||
public DiscordRPCModule() { | ||
super("DiscordRPC"); | ||
|
||
this.setCategory(Category.of("Misc")); | ||
this.setDescription("Toggles Discord RPC On and Off"); | ||
} | ||
|
||
@Override | ||
public void onDisable() { | ||
RPCManager rpcManager = new RPCManager(); | ||
rpcManager.startRpc(); | ||
} | ||
|
||
@Override | ||
public void onEnable() { | ||
RPCManager rpcManager = new RPCManager(); | ||
rpcManager.StopRPC(); | ||
} | ||
|
||
@Override | ||
public void onToggle() { // OnEnable And Disable Handle | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters