comments and todo

This commit is contained in:
Oth3r 2024-07-26 09:42:05 -05:00
commit e34f965f38

View file

@ -39,6 +39,7 @@ public class Events {
while (toggle_key.isPressed()) { while (toggle_key.isPressed()) {
toggle_key.setPressed(false); toggle_key.setPressed(false);
if (Data.isInGame()) { if (Data.isInGame()) {
// todo move to logic.java
if (Data.isSupportedServer()) { if (Data.isSupportedServer()) {
// get the sitting config // get the sitting config
SittingConfig config = FileData.getSittingConfig(); SittingConfig config = FileData.getSittingConfig();
@ -61,6 +62,7 @@ public class Events {
player.sendMessage(Utl.lang("msg.sit_toggle", player.sendMessage(Utl.lang("msg.sit_toggle",
Utl.lang(messageKey).formatted(messageColor)), true); Utl.lang(messageKey).formatted(messageColor)), true);
} else { } else {
// unsupported server message if not in a Sit! server
player.sendMessage(Utl.lang("msg.sit_toggle.unsupported") player.sendMessage(Utl.lang("msg.sit_toggle.unsupported")
.formatted(Formatting.RED), true); .formatted(Formatting.RED), true);
} }