Stopwatch Module
Overview
The stopwatch module allows you to control the stopwatch mod inside Lunar Client.
- Ability to fully control a player's stopwatch mod.
- Start a player's stopwatch
- Stop a player's stopwatch
- Reset a player's stopwatch
Start, Stop, and Reset the Lunar Client stopwatch mod!
Integration
How to start a player's stopwatch
public void startStopwatchExample(Player viewer) {
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
apolloPlayerOpt.ifPresent(this.stopwatchModule::startStopwatch);
}
How to stop a player's stopwatch
public void stopStopwatchExample(Player viewer) {
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
apolloPlayerOpt.ifPresent(this.stopwatchModule::stopStopwatch);
}
How to reset a player's stopwatch
public void resetStopwatchExample(Player viewer) {
Optional<ApolloPlayer> apolloPlayerOpt = Apollo.getPlayerManager().getPlayer(viewer.getUniqueId());
apolloPlayerOpt.ifPresent(this.stopwatchModule::resetStopwatch);
}