forked from SteamWar/SteamWar
Added tls toggle
This commit is contained in:
+9
@@ -43,4 +43,13 @@ public class TLSCommand extends SWCommand {
|
|||||||
public void stop(@Validator Player player) {
|
public void stop(@Validator Player player) {
|
||||||
listener.stopListening(player);
|
listener.stopListening(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Register(description = "TLS_TOGGLE_HELP")
|
||||||
|
public void toggle(@Validator Player player) {
|
||||||
|
if (listener.isActiveFor(player)) {
|
||||||
|
listener.stopListening(player);
|
||||||
|
} else {
|
||||||
|
listener.startListening(player);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user