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.registry.SetCommand;
import de.com.baseband.client.util.interact.Chat; import de.com.baseband.client.util.interact.Chat;
import org.lwjgl.input.Keyboard; import org.lwjgl.input.Keyboard;
import de.com.baseband.client.registry.annotation.Description;
@Command @Command
@Description("Sets a keybind")
public class Bind extends Feature { public class Bind extends Feature {
@Override @Override
public void onCommand(String[] args) { 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.client.feature.category.Command;
import de.com.baseband.prod.LoadHandler; import de.com.baseband.prod.LoadHandler;
import net.minecraftforge.fml.client.FMLClientHandler; import net.minecraftforge.fml.client.FMLClientHandler;
import de.com.baseband.client.registry.annotation.Description;
import static de.com.baseband.client.BaseBand.LOGGER; import static de.com.baseband.client.BaseBand.LOGGER;
@Command @Command
@Description("Connects to a server")
public class Connect extends Feature { public class Connect extends Feature {
@Override @Override
public String toString() { 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.Feature;
import de.com.baseband.client.feature.category.Command; import de.com.baseband.client.feature.category.Command;
import de.com.baseband.client.util.interact.Chat; import de.com.baseband.client.util.interact.Chat;
import de.com.baseband.client.registry.annotation.Description;
@Command @Command
@Description("Shows the credits for BaseBand")
public class Credit extends Feature { public class Credit extends Feature {
@Override @Override
@ -14,9 +16,14 @@ public class Credit extends Feature {
@Override @Override
public void onCommand(String[] args) { public void onCommand(String[] args) {
Chat.print("Credits:"); Chat.print("§lCredits:");
Chat.print("Jess H - Insanity."); Chat.print("");
Chat.print("TudbuT - Client Base, Settings System, Loader."); Chat.print("Project started by §dJess§r, adopted by §aTudbuT§r.");
Chat.print("John200410 - Telling me to increase the BCrypt rounds."); 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 de.com.baseband.client.feature.category.Command;
import net.minecraft.network.play.server.SPacketDisconnect; import net.minecraft.network.play.server.SPacketDisconnect;
import net.minecraft.util.text.TextComponentString; import net.minecraft.util.text.TextComponentString;
import de.com.baseband.client.registry.annotation.Description;
@Command @Command
@Description("Disconnects from the current server.")
public class Disconnect extends Feature { public class Disconnect extends Feature {
@Override @Override

View file

@ -9,8 +9,10 @@ import de.com.baseband.client.util.interact.Chat;
import de.tudbut.obj.TLMap; import de.tudbut.obj.TLMap;
import net.minecraft.util.text.Style; import net.minecraft.util.text.Style;
import net.minecraft.util.text.TextComponentString; import net.minecraft.util.text.TextComponentString;
import de.com.baseband.client.registry.annotation.Description;
@Command @Command
@Description("Access the BaseBand Help system")
public class Help extends Feature { public class Help extends Feature {
String type; 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.Feature;
import de.com.baseband.client.feature.category.Command; import de.com.baseband.client.feature.category.Command;
import net.minecraft.network.play.client.CPacketChatMessage; import net.minecraft.network.play.client.CPacketChatMessage;
import de.com.baseband.client.registry.annotation.Description;
@Command @Command
@Description("Says something in chat, even if it contains a command prefix.")
public class Say extends Feature { public class Say extends Feature {
@Override @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.ConfigHandle;
import de.com.baseband.client.registry.SetCommand; import de.com.baseband.client.registry.SetCommand;
import de.com.baseband.client.util.interact.Chat; import de.com.baseband.client.util.interact.Chat;
import de.com.baseband.client.registry.annotation.Description;
import java.util.HashMap; import java.util.HashMap;
@Command @Command
@Description("Changes a setting of some module")
public class Set extends Feature { public class Set extends Feature {
private static final HashMap<Integer, ConfigHandle> quickSet = new HashMap<>(); 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.category.Command;
import de.com.baseband.client.feature.modules.client.Client; import de.com.baseband.client.feature.modules.client.Client;
import de.com.baseband.client.util.interact.Chat; import de.com.baseband.client.util.interact.Chat;
import de.com.baseband.client.registry.annotation.Description;
@Command @Command
@Description("Toggles a module")
public class Toggle extends Feature { public class Toggle extends Feature {
@Override @Override