use of cc.hyperium.Hyperium in project Hyperium by HyperiumClient.
the class LocationHandler method tick.
@InvokeEvent
public void tick(TickEvent event) {
Hyperium instance = Hyperium.INSTANCE;
HyperiumHandlers handlers = instance.getHandlers();
if (handlers == null)
return;
HypixelDetector hypixelDetector = handlers.getHypixelDetector();
if (!hypixelDetector.isHypixel())
ticksInWorld = 0;
if (ticksInWorld < 20) {
ticksInWorld++;
if (ticksInWorld == 20) {
sendingWhereAmI = true;
Hyperium.INSTANCE.getHandlers().getCommandQueue().queue("/whereami");
}
}
}
Aggregations