update credits command, add descriptions to all commands
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m53s

This commit is contained in:
Daniella / Tove 2024-10-03 16:23:55 +02:00
parent f82442a837
commit 24bff93564
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
8 changed files with 25 additions and 4 deletions

View file

@ -7,8 +7,10 @@ import de.com.baseband.client.feature.modules.client.Client;
import de.com.baseband.client.registry.SetCommand;
import de.com.baseband.client.util.interact.Chat;
import org.lwjgl.input.Keyboard;
import de.com.baseband.client.registry.annotation.Description;
@Command
@Description("Sets a keybind")
public class Bind extends Feature {
@Override
public void onCommand(String[] args) {

View file

@ -4,10 +4,12 @@ import de.com.baseband.client.feature.Feature;
import de.com.baseband.client.feature.category.Command;
import de.com.baseband.prod.LoadHandler;
import net.minecraftforge.fml.client.FMLClientHandler;
import de.com.baseband.client.registry.annotation.Description;
import static de.com.baseband.client.BaseBand.LOGGER;
@Command
@Description("Connects to a server")
public class Connect extends Feature {
@Override
public String toString() {

View file

@ -3,8 +3,10 @@ package de.com.baseband.client.feature.commands;
import de.com.baseband.client.feature.Feature;
import de.com.baseband.client.feature.category.Command;
import de.com.baseband.client.util.interact.Chat;
import de.com.baseband.client.registry.annotation.Description;
@Command
@Description("Shows the credits for BaseBand")
public class Credit extends Feature {
@Override
@ -14,9 +16,14 @@ public class Credit extends Feature {
@Override
public void onCommand(String[] args) {
Chat.print("Credits:");
Chat.print("Jess H - Insanity.");
Chat.print("TudbuT - Client Base, Settings System, Loader.");
Chat.print("John200410 - Telling me to increase the BCrypt rounds.");
Chat.print("§lCredits:");
Chat.print("");
Chat.print("Project started by §dJess§r, adopted by §aTudbuT§r.");
Chat.print("");
Chat.print("§aTudbuT§r - Client base, settings system / registry, loader, most modules");
Chat.print("§dJess H§r - Help during early loader development, some modules, original server");
Chat.print("§bJohn200410§r - Giving some advice");
Chat.print("");
Chat.print("Thanks for playing! <3");
}
}

View file

@ -4,8 +4,10 @@ import de.com.baseband.client.feature.Feature;
import de.com.baseband.client.feature.category.Command;
import net.minecraft.network.play.server.SPacketDisconnect;
import net.minecraft.util.text.TextComponentString;
import de.com.baseband.client.registry.annotation.Description;
@Command
@Description("Disconnects from the current server.")
public class Disconnect extends Feature {
@Override

View file

@ -9,8 +9,10 @@ import de.com.baseband.client.util.interact.Chat;
import de.tudbut.obj.TLMap;
import net.minecraft.util.text.Style;
import net.minecraft.util.text.TextComponentString;
import de.com.baseband.client.registry.annotation.Description;
@Command
@Description("Access the BaseBand Help system")
public class Help extends Feature {
String type;

View file

@ -3,8 +3,10 @@ package de.com.baseband.client.feature.commands;
import de.com.baseband.client.feature.Feature;
import de.com.baseband.client.feature.category.Command;
import net.minecraft.network.play.client.CPacketChatMessage;
import de.com.baseband.client.registry.annotation.Description;
@Command
@Description("Says something in chat, even if it contains a command prefix.")
public class Say extends Feature {
@Override

View file

@ -8,10 +8,12 @@ import de.com.baseband.client.feature.modules.client.Client;
import de.com.baseband.client.registry.ConfigHandle;
import de.com.baseband.client.registry.SetCommand;
import de.com.baseband.client.util.interact.Chat;
import de.com.baseband.client.registry.annotation.Description;
import java.util.HashMap;
@Command
@Description("Changes a setting of some module")
public class Set extends Feature {
private static final HashMap<Integer, ConfigHandle> quickSet = new HashMap<>();

View file

@ -5,8 +5,10 @@ import de.com.baseband.client.feature.Features;
import de.com.baseband.client.feature.category.Command;
import de.com.baseband.client.feature.modules.client.Client;
import de.com.baseband.client.util.interact.Chat;
import de.com.baseband.client.registry.annotation.Description;
@Command
@Description("Toggles a module")
public class Toggle extends Feature {
@Override