mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-19 16:03:22 +02:00
lang update to not cause issues
This commit is contained in:
parent
c6c9414b0b
commit
d3274d7302
8 changed files with 47 additions and 48 deletions
|
@ -34,19 +34,19 @@ public class Events {
|
|||
|
||||
private static void register() {
|
||||
toggle_key = KeyBindingHelper.registerKeyBinding(new KeyBinding(
|
||||
"key.toggle",
|
||||
"key.sit!.toggle",
|
||||
GLFW.GLFW_KEY_UNKNOWN,
|
||||
"category.sit"
|
||||
"category.sit!"
|
||||
));
|
||||
sit_key = KeyBindingHelper.registerKeyBinding(new KeyBinding(
|
||||
"key.sit",
|
||||
"key.sit!.sit",
|
||||
GLFW.GLFW_KEY_UNKNOWN,
|
||||
"category.sit"
|
||||
"category.sit!"
|
||||
));
|
||||
config__key = KeyBindingHelper.registerKeyBinding(new KeyBinding(
|
||||
"key.config",
|
||||
"key.sit!.config",
|
||||
GLFW.GLFW_KEY_UNKNOWN,
|
||||
"category.sit"
|
||||
"category.sit!"
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ public class Events {
|
|||
player.networkHandler.sendCommand("sit");
|
||||
} else {
|
||||
// unsupported server message if not in a Sit! server
|
||||
player.sendMessage(Utl.lang("msg.unsupported")
|
||||
player.sendMessage(Utl.lang("sit!.chat.unsupported")
|
||||
.formatted(Formatting.RED), true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -164,15 +164,15 @@ public class Logic {
|
|||
|
||||
|
||||
// get the message settings
|
||||
String messageKey = "msg.sit_toggle."+(config.getEnabled()?"on":"off");
|
||||
String messageKey = "sit!.chat.sit_toggle."+(config.getEnabled()?"on":"off");
|
||||
Formatting messageColor = config.getEnabled()?Formatting.GREEN:Formatting.RED;
|
||||
|
||||
// send the player the actionbar message
|
||||
return Utl.lang("msg.sit_toggle",
|
||||
return Utl.lang("sit!.chat.sit_toggle",
|
||||
Utl.lang(messageKey).formatted(messageColor));
|
||||
} else {
|
||||
// unsupported server message if not in a Sit! server
|
||||
return Utl.lang("msg.unsupported")
|
||||
return Utl.lang("sit!.chat.unsupported")
|
||||
.formatted(Formatting.RED);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,14 +15,12 @@ import net.minecraft.entity.player.PlayerEntity;
|
|||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.registry.Registries;
|
||||
import net.minecraft.registry.tag.TagKey;
|
||||
import net.minecraft.server.network.ServerPlayerEntity;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
import net.minecraft.text.MutableText;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.TypeFilter;
|
||||
import net.minecraft.util.UseAction;
|
||||
import net.minecraft.text.TextColor;
|
||||
import net.minecraft.util.*;
|
||||
import net.minecraft.util.hit.BlockHitResult;
|
||||
import net.minecraft.util.hit.HitResult;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
|
@ -334,7 +332,7 @@ public class Utl {
|
|||
|
||||
// send a message if needed
|
||||
if (message) {
|
||||
player.sendMessage(messageTag().append(Utl.lang("msg.purged",Utl.lang("msg.purged.total",count).styled(
|
||||
player.sendMessage(messageTag().append(Utl.lang("sit!.chat.purged",Utl.lang("sit!.chat.purged.total",count).styled(
|
||||
style -> style.withColor(Colors.LIGHT_GRAY).withItalic(true)
|
||||
)).styled(
|
||||
style -> style.withColor(Colors.GREEN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue