add lang of new commands
This commit is contained in:
parent
8e2291ecb2
commit
e1270b8f1a
@ -13,6 +13,7 @@ import net.minecraft.text.MutableText;
|
|||||||
import net.minecraft.text.Style;
|
import net.minecraft.text.Style;
|
||||||
import net.minecraft.util.Formatting;
|
import net.minecraft.util.Formatting;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
@ -26,6 +27,7 @@ public class CommandHelp {
|
|||||||
|
|
||||||
public static int helpMessage(CommandContext<ServerCommandSource> context, int page, Collection<CommandNode<ServerCommandSource>> nodes) {
|
public static int helpMessage(CommandContext<ServerCommandSource> context, int page, Collection<CommandNode<ServerCommandSource>> nodes) {
|
||||||
List<String> subCommands = registeredCommands(context, nodes);
|
List<String> subCommands = registeredCommands(context, nodes);
|
||||||
|
subCommands.forEach(s -> System.out.println(Arrays.toString(ConfigHandler.lang.cmdLang.getCommandHelp(s))));
|
||||||
int max = subCommands.size() / 8;
|
int max = subCommands.size() / 8;
|
||||||
if (page > max)
|
if (page > max)
|
||||||
page = max;
|
page = max;
|
||||||
|
@ -28,10 +28,11 @@ public class LangCommands {
|
|||||||
map.put("unlockDrops", new String[]{"unlockDrops <players>", "Unlocks dropped items from death so other players can pick them up too. Or all of the given players (needs OP)"});
|
map.put("unlockDrops", new String[]{"unlockDrops <players>", "Unlocks dropped items from death so other players can pick them up too. Or all of the given players (needs OP)"});
|
||||||
map.put("setHome", new String[]{"setHome", "Standing in a claim with sufficient permission sets that claims home to the players position"});
|
map.put("setHome", new String[]{"setHome", "Standing in a claim with sufficient permission sets that claims home to the players position"});
|
||||||
map.put("teleport", new String[]{"teleport self | (other <player>) (<claim name> | <claim uuid>)", "Teleport to the given claims home position"});
|
map.put("teleport", new String[]{"teleport self | (other <player>) (<claim name> | <claim uuid>)", "Teleport to the given claims home position"});
|
||||||
|
map.put("name", new String[]{"name self <name>", "Sets the current claims name"});
|
||||||
|
|
||||||
map.put("reload", new String[]{"reload", "Reloads the config ingame."});
|
map.put("reload", new String[]{"reload", "Reloads the config ingame."});
|
||||||
map.put("adminMode", new String[]{"adminMode", "Switches to admin mode ignoring all claims."});
|
map.put("adminMode", new String[]{"adminMode", "Switches to admin mode ignoring all claims."});
|
||||||
map.put("readGriefPrevention", new String[]{"readGriefPreventionData", "Parses data from the GriefPrevention plugin to io.github.flemmli97.flan.Flan."});
|
map.put("readGriefPrevention", new String[]{"readGriefPreventionData", "Parses data from the GriefPrevention plugin to Flan"});
|
||||||
map.put("setAdminClaim", new String[]{"setAdminClaim", "Sets a claim to an admin claim."});
|
map.put("setAdminClaim", new String[]{"setAdminClaim", "Sets a claim to an admin claim."});
|
||||||
map.put("listAdminClaims", new String[]{"listAdminClaim", "Lists all admin claims in the current world."});
|
map.put("listAdminClaims", new String[]{"listAdminClaim", "Lists all admin claims in the current world."});
|
||||||
map.put("adminDelete", new String[]{"adminDelete [all <player>]", "Force deletes the current claim or deletes all claims from the specified player."});
|
map.put("adminDelete", new String[]{"adminDelete [all <player>]", "Force deletes the current claim or deletes all claims from the specified player."});
|
||||||
|
@ -2,7 +2,6 @@ package io.github.flemmli97.flan.forge;
|
|||||||
|
|
||||||
import net.minecraft.entity.effect.StatusEffect;
|
import net.minecraft.entity.effect.StatusEffect;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.util.registry.Registry;
|
|
||||||
import net.minecraftforge.fml.loading.FMLPaths;
|
import net.minecraftforge.fml.loading.FMLPaths;
|
||||||
import net.minecraftforge.registries.ForgeRegistries;
|
import net.minecraftforge.registries.ForgeRegistries;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user