diff --git a/src/main/java/me/alexdevs/solstice/mixin/SignBlockEntityMixin.java b/src/main/java/me/alexdevs/solstice/mixin/SignBlockEntityMixin.java index 9c63a4f..f969f77 100644 --- a/src/main/java/me/alexdevs/solstice/mixin/SignBlockEntityMixin.java +++ b/src/main/java/me/alexdevs/solstice/mixin/SignBlockEntityMixin.java @@ -1,7 +1,7 @@ package me.alexdevs.solstice.mixin; import me.alexdevs.solstice.Solstice; -import me.alexdevs.solstice.modules.formattableSigns.FormattableSignsModule; +import me.alexdevs.solstice.modules.sign.SignModule; import net.minecraft.block.entity.SignBlockEntity; import net.minecraft.block.entity.SignText; import net.minecraft.entity.player.PlayerEntity; @@ -18,10 +18,10 @@ public abstract class SignBlockEntityMixin { @Inject(method = "getTextWithMessages", at = @At("HEAD"), cancellable = true) private void getTextWithMessages(PlayerEntity player, List messages, SignText text, CallbackInfoReturnable cir) { - var formattableSignsModule = Solstice.modules.getModule(FormattableSignsModule.class); + var formattableSignsModule = Solstice.modules.getModule(SignModule.class); if (formattableSignsModule.canFormatSign(player)) { try { - text = FormattableSignsModule.formatSign(messages, text); + text = SignModule.formatSign(messages, text); cir.setReturnValue(text); } catch (Exception e) { Solstice.LOGGER.error("Something went wrong while formatting a sign!", e); diff --git a/src/main/java/me/alexdevs/solstice/modules/ModuleProvider.java b/src/main/java/me/alexdevs/solstice/modules/ModuleProvider.java index 09c7076..25ed8f6 100644 --- a/src/main/java/me/alexdevs/solstice/modules/ModuleProvider.java +++ b/src/main/java/me/alexdevs/solstice/modules/ModuleProvider.java @@ -16,7 +16,7 @@ import me.alexdevs.solstice.modules.extinguish.ExtinguishModule; import me.alexdevs.solstice.modules.feed.FeedModule; import me.alexdevs.solstice.modules.fly.FlyModule; -import me.alexdevs.solstice.modules.formattableSigns.FormattableSignsModule; +import me.alexdevs.solstice.modules.sign.SignModule; import me.alexdevs.solstice.modules.god.GodModule; import me.alexdevs.solstice.modules.hat.HatModule; import me.alexdevs.solstice.modules.heal.HealModule; @@ -66,7 +66,7 @@ public class ModuleProvider { new ExtinguishModule(), new FeedModule(), new FlyModule(), - new FormattableSignsModule(), + new SignModule(), new GodModule(), new HatModule(), new HealModule(), diff --git a/src/main/java/me/alexdevs/solstice/modules/formattableSigns/FormattableSignsModule.java b/src/main/java/me/alexdevs/solstice/modules/sign/SignModule.java similarity index 73% rename from src/main/java/me/alexdevs/solstice/modules/formattableSigns/FormattableSignsModule.java rename to src/main/java/me/alexdevs/solstice/modules/sign/SignModule.java index abbf081..25bb07a 100644 --- a/src/main/java/me/alexdevs/solstice/modules/formattableSigns/FormattableSignsModule.java +++ b/src/main/java/me/alexdevs/solstice/modules/sign/SignModule.java @@ -1,4 +1,4 @@ -package me.alexdevs.solstice.modules.formattableSigns; +package me.alexdevs.solstice.modules.sign; import eu.pb4.placeholders.api.parsers.LegacyFormattingParser; import me.alexdevs.solstice.api.module.ModuleBase; @@ -9,10 +9,10 @@ import java.util.List; -public class FormattableSignsModule extends ModuleBase { - public static final String ID = "formattablesigns"; +public class SignModule extends ModuleBase { + public static final String ID = "sign"; - public FormattableSignsModule() { + public SignModule() { super(ID); } @@ -26,6 +26,6 @@ public static SignText formatSign(List messages, SignText text) } public boolean canFormatSign(PlayerEntity player) { - return Permissions.check(player, getPermissionNode("base"), 2); + return Permissions.check(player, getPermissionNode("format"), 2); } }