9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 11:39:07 +00:00

Eight - remove technical debt

This commit is contained in:
CocoTheOwner
2021-08-15 22:12:51 +02:00
parent 8fa9977617
commit 5fe5ba78da
2 changed files with 36 additions and 56 deletions

View File

@@ -37,26 +37,6 @@ public interface DecreeExecutor {
return sender().player();
}
default void message(String string)
{
sender().sendMessage(string);
}
default void success(String string)
{
message(C.GREEN + string);
}
default void error(String string)
{
message(C.RED + string);
}
default void warn(String string)
{
message(C.YELLOW + string);
}
default Engine engine()
{
if(sender().isPlayer() && IrisToolbelt.access(sender().player().getWorld()) != null)