reset on authenticated
This commit is contained in:
parent
d931a8abd1
commit
e15953918d
2 changed files with 5 additions and 4 deletions
|
@ -73,5 +73,7 @@ public class ChomeNSAuth extends Listener {
|
||||||
System.out.println("Sending " + toSendString + " to " + selector);
|
System.out.println("Sending " + toSendString + " to " + selector);
|
||||||
|
|
||||||
CommandCore.INSTANCE.run("tellraw " + selector + " " + toSendString);
|
CommandCore.INSTANCE.run("tellraw " + selector + " " + toSendString);
|
||||||
|
|
||||||
|
CustomChat.INSTANCE.resetTotal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@ import com.google.gson.JsonElement;
|
||||||
import land.chipmunk.chipmunkmod.ChipmunkMod;
|
import land.chipmunk.chipmunkmod.ChipmunkMod;
|
||||||
|
|
||||||
|
|
||||||
import land.chipmunk.chipmunkmod.commands.SayCommand;
|
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.format.NamedTextColor;
|
import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
|
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
|
||||||
|
@ -49,7 +48,7 @@ public class CustomChat {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
reset();
|
resetTotal();
|
||||||
|
|
||||||
timer = new Timer();
|
timer = new Timer();
|
||||||
timer.schedule(task, 0, 50);
|
timer.schedule(task, 0, 50);
|
||||||
|
@ -60,11 +59,11 @@ public class CustomChat {
|
||||||
|
|
||||||
if (networkHandler != null) return;
|
if (networkHandler != null) return;
|
||||||
|
|
||||||
reset();
|
resetTotal();
|
||||||
cleanup();
|
cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void reset () {
|
public void resetTotal() {
|
||||||
total = 0;
|
total = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue