Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Colorcodes Command #107

Merged
merged 9 commits into from
Jan 11, 2025
3 changes: 2 additions & 1 deletion src/main/java/de/cuuky/varo/command/VaroCommand.java
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ public abstract class VaroCommand {
new BackpackCommand();
new BugreportCommand();
new CheckCombatCommand();
new ColorcodesCommand();
new CommandCommand();
new ConfigCommand();
new DiscordCommand();
@@ -121,4 +122,4 @@ public static VaroCommand getCommand(String command) {
public static List<VaroCommand> getVaroCommand() {
return varoCommands;
}
}
}
35 changes: 35 additions & 0 deletions src/main/java/de/cuuky/varo/command/varo/ColorcodesCommand.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package de.cuuky.varo.command.varo;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;

import de.cuuky.varo.Main;
import de.cuuky.varo.command.VaroCommand;
import de.cuuky.varo.player.VaroPlayer;

public class ColorcodesCommand extends VaroCommand {

public ColorcodesCommand() {
super("colorcodes", "Zeigt alle Colorcodes an", "varo.colorcodes", "formatting");
}

@Override
public void onCommand(CommandSender sender, VaroPlayer vp, Command cmd, String label, String[] args) {

sender.sendMessage("§7==============================");
sender.sendMessage("&0 = §0Black §f&1 = §1Dark Blue");
sender.sendMessage("&2 = §2Dark Green §f&3 = §3Dark Aqua");
sender.sendMessage("&4 = §4Dark Red §f&5 = §5Dark Purple");
sender.sendMessage("&6 = §6Gold §f&7 = §7Gray");
sender.sendMessage("&8 = §8Dark Gray §f&9 = §9Blue");
sender.sendMessage("&a = §aGreen §f&b = §bAqua");
sender.sendMessage("&c = §cRed §f&d = §dLight Purple");
sender.sendMessage("&e = §eYellow §f&f = §fWhite");
sender.sendMessage("§7==============================");
sender.sendMessage("&k = §kMagic§r§f &l = §lBold");
sender.sendMessage("&m = §mStrikethrough§r§f &n = §nUnderline");
sender.sendMessage("&o = §oItalic§r§f &r = §rReset");
sender.sendMessage("§7==============================");

}
}