Redid all commands, Added Party chat and added Settingsmenu
This commit is contained in:
@ -5,6 +5,7 @@ import rip.tilly.bedwars.commands.arena.ArenaCommand;
|
||||
import rip.tilly.bedwars.commands.level.LevelCommand;
|
||||
import rip.tilly.bedwars.commands.party.PartyCommand;
|
||||
import rip.tilly.bedwars.commands.setspawn.SetSpawnCommand;
|
||||
import rip.tilly.bedwars.commands.toggle.ToggleCommand;
|
||||
import rip.tilly.bedwars.commands.xp.XpCommand;
|
||||
|
||||
public class CommandManager {
|
||||
@ -20,6 +21,8 @@ public class CommandManager {
|
||||
this.main.getCommand("level").setExecutor(new LevelCommand());
|
||||
this.main.getCommand("xp").setExecutor(new XpCommand());
|
||||
this.main.getCommand("party").setExecutor(new PartyCommand());
|
||||
this.main.getCommand("p").setExecutor(new PartyCommand());
|
||||
this.main.getCommand("arena").setExecutor(new ArenaCommand());
|
||||
this.main.getCommand("toggle").setExecutor(new ToggleCommand());
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@ import org.bukkit.entity.Player;
|
||||
import rip.tilly.bedwars.BedWars;
|
||||
import rip.tilly.bedwars.game.GameTeam;
|
||||
import rip.tilly.bedwars.playerdata.PlayerTeam;
|
||||
import rip.tilly.bedwars.utils.CC;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
@ -39,7 +40,7 @@ public class Party {
|
||||
}
|
||||
|
||||
public void broadcast(String message) {
|
||||
this.members().forEach(member -> member.sendMessage(message));
|
||||
this.members().forEach(member -> member.sendMessage(CC.translate(message)));
|
||||
}
|
||||
|
||||
private GameTeam findTeam(UUID uuid) {
|
||||
|
Reference in New Issue
Block a user