pretty
This commit is contained in:
1 parent
95d556a978
commit
7e4dc18c96
1 file changed
+1
-4
@@ -9,7 +9,6 @@ import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
|||||||
import com.mojang.brigadier.context.CommandContext;
|
import com.mojang.brigadier.context.CommandContext;
|
||||||
import com.mojang.brigadier.exceptions.CommandSyntaxException;
|
import com.mojang.brigadier.exceptions.CommandSyntaxException;
|
||||||
import com.mojang.brigadier.exceptions.SimpleCommandExceptionType;
|
import com.mojang.brigadier.exceptions.SimpleCommandExceptionType;
|
||||||
import com.mojang.brigadier.tree.CommandNode;
|
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraft.server.MinecraftServer;
|
import net.minecraft.server.MinecraftServer;
|
||||||
import net.minecraft.server.command.ServerCommandSource;
|
import net.minecraft.server.command.ServerCommandSource;
|
||||||
@@ -74,7 +73,7 @@ public class SettingsManager
|
|||||||
notifyPlayersCommandsChanged();
|
notifyPlayersCommandsChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
public SettingsManager parseSettingsClass(Class settingsClass)
|
public void parseSettingsClass(Class settingsClass)
|
||||||
{
|
{
|
||||||
for (Field f : settingsClass.getDeclaredFields())
|
for (Field f : settingsClass.getDeclaredFields())
|
||||||
{
|
{
|
||||||
@@ -83,7 +82,6 @@ public class SettingsManager
|
|||||||
ParsedRule parsed = new ParsedRule(f, rule);
|
ParsedRule parsed = new ParsedRule(f, rule);
|
||||||
rules.put(parsed.name, parsed);
|
rules.put(parsed.name, parsed);
|
||||||
}
|
}
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addRuleObserver(TriConsumer<ServerCommandSource, ParsedRule<?>, String> observer)
|
public void addRuleObserver(TriConsumer<ServerCommandSource, ParsedRule<?>, String> observer)
|
||||||
@@ -307,7 +305,6 @@ public class SettingsManager
|
|||||||
Messenger.c("rb Failed to add settings command for " + identifier + ". It is masking previous command."));
|
Messenger.c("rb Failed to add settings command for " + identifier + ". It is masking previous command."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
CarpetSettings.LOG.error("\n\n\n\n REGISTERIN\n\n\n\n");
|
|
||||||
|
|
||||||
LiteralArgumentBuilder<ServerCommandSource> literalargumentbuilder = literal(identifier).requires((player) ->
|
LiteralArgumentBuilder<ServerCommandSource> literalargumentbuilder = literal(identifier).requires((player) ->
|
||||||
player.hasPermissionLevel(2) && !locked);
|
player.hasPermissionLevel(2) && !locked);
|
||||||
|
|||||||
Reference in new issue
Block a user