Search in sources :

Example 1 with Hyperium

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");
        }
    }
}
Also used : HyperiumHandlers(cc.hyperium.handlers.HyperiumHandlers) Hyperium(cc.hyperium.Hyperium)

Aggregations

Hyperium (cc.hyperium.Hyperium)1 HyperiumHandlers (cc.hyperium.handlers.HyperiumHandlers)1