mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-20 00:13:21 +02:00
comments and todo
This commit is contained in:
parent
ddf7703693
commit
e34f965f38
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue