Update to new ColorConfig
Dieser Commit ist enthalten in:
Ursprung
8cab75b90f
Commit
7c4b98451f
@ -18,10 +18,10 @@
|
||||
*/
|
||||
package de.steamwar.bausystem.features.other;
|
||||
|
||||
import de.steamwar.bausystem.config.ColorConfig;
|
||||
import de.steamwar.bausystem.linkage.LinkageType;
|
||||
import de.steamwar.bausystem.linkage.Linked;
|
||||
import de.steamwar.command.SWCommand;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@ -34,8 +34,8 @@ public class GamemodeCommand extends SWCommand {
|
||||
|
||||
@Register(help = true)
|
||||
public void help(final Player p, final String... args) {
|
||||
p.sendMessage(ChatColor.RED + "Unbekannter Spielmodus.");
|
||||
p.sendMessage(ChatColor.RED + "Mögliche Spielmodi: survival, adventure, creative, specator.");
|
||||
p.sendMessage(ColorConfig.DISABLE + "Unbekannter Spielmodus.");
|
||||
p.sendMessage(ColorConfig.DISABLE + "Mögliche Spielmodi: survival, adventure, creative, specator.");
|
||||
}
|
||||
|
||||
@Register
|
||||
|
@ -20,10 +20,10 @@
|
||||
package de.steamwar.bausystem.features.other;
|
||||
|
||||
import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.config.ColorConfig;
|
||||
import de.steamwar.bausystem.linkage.LinkageType;
|
||||
import de.steamwar.bausystem.linkage.Linked;
|
||||
import de.steamwar.command.SWCommand;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.player.PlayerTeleportEvent;
|
||||
|
||||
@ -36,13 +36,13 @@ public class TeleportCommand extends SWCommand {
|
||||
|
||||
@Register(help = true)
|
||||
public void genericHelp(Player p, String... args) {
|
||||
p.sendMessage(ChatColor.DARK_GRAY + "/" + ChatColor.YELLOW + "tp " + ChatColor.DARK_GRAY + "[" + ChatColor.GRAY + "Player" + ChatColor.DARK_GRAY + "] - " + ChatColor.GRAY + "Teleportiere dich zu einem Spieler");
|
||||
p.sendMessage(ColorConfig.OTHER + "/" + ColorConfig.HIGHLIGHT + "tp " + ColorConfig.OTHER + "[" + ColorConfig.BASE + "Player" + ColorConfig.OTHER + "] - " + ColorConfig.BASE + "Teleportiere dich zu einem Spieler");
|
||||
}
|
||||
|
||||
@Register
|
||||
public void genericCommand(Player p, Player target) {
|
||||
if (p.getUniqueId().equals(target.getUniqueId())) {
|
||||
p.sendMessage(BauSystem.PREFIX + ChatColor.RED + "Sei eins mit dir selbst!");
|
||||
p.sendMessage(BauSystem.PREFIX + ColorConfig.DISABLE + "Sei eins mit dir selbst!");
|
||||
return;
|
||||
}
|
||||
p.teleport(target, PlayerTeleportEvent.TeleportCause.COMMAND);
|
||||
|
@ -21,12 +21,12 @@ package de.steamwar.bausystem.features.other;
|
||||
|
||||
import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.Permission;
|
||||
import de.steamwar.bausystem.config.ColorConfig;
|
||||
import de.steamwar.bausystem.linkage.LinkageType;
|
||||
import de.steamwar.bausystem.linkage.Linked;
|
||||
import de.steamwar.command.SWCommand;
|
||||
import de.steamwar.command.SWCommandUtils;
|
||||
import de.steamwar.command.TypeMapper;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
@ -44,17 +44,17 @@ public class TimeCommand extends SWCommand {
|
||||
|
||||
@Register(help = true)
|
||||
public void genericHelp(Player p, String... args) {
|
||||
p.sendMessage(ChatColor.DARK_GRAY + "/" + ChatColor.YELLOW + "time " + ChatColor.DARK_GRAY + "<" + ChatColor.GRAY + "Zeit 0=Morgen" + ChatColor.DARK_GRAY + ", " + ChatColor.GRAY + "6000=Mittag" + ChatColor.DARK_GRAY + ", " + ChatColor.GRAY + "18000=Mitternacht" + ChatColor.DARK_GRAY + "> - " + ChatColor.GRAY + "Setzt die Zeit auf dem Bau");
|
||||
p.sendMessage(ColorConfig.OTHER + "/" + ColorConfig.HIGHLIGHT + "time " + ColorConfig.OTHER + "<" + ColorConfig.BASE + "Zeit 0=Morgen" + ColorConfig.OTHER + ", " + ColorConfig.BASE + "6000=Mittag" + ColorConfig.OTHER + ", " + ColorConfig.BASE + "18000=Mitternacht" + ColorConfig.OTHER + "> - " + ColorConfig.BASE + "Setzt die Zeit auf dem Bau");
|
||||
}
|
||||
|
||||
@Register
|
||||
public void genericCommand(Player p, int time) {
|
||||
if (!Permission.hasPermission(p, Permission.WORLD)) {
|
||||
p.sendMessage(BauSystem.PREFIX + ChatColor.RED + "Du darfst hier nicht die Zeit ändern");
|
||||
p.sendMessage(BauSystem.PREFIX + ColorConfig.DISABLE + "Du darfst hier nicht die Zeit ändern");
|
||||
return;
|
||||
}
|
||||
if (time < 0 || time > 24000) {
|
||||
p.sendMessage(BauSystem.PREFIX + ChatColor.RED + "Bitte gib eine Zahl zwischen 0 und 24000 an");
|
||||
p.sendMessage(BauSystem.PREFIX + ColorConfig.DISABLE + "Bitte gib eine Zahl zwischen 0 und 24000 an");
|
||||
return;
|
||||
}
|
||||
Bukkit.getWorlds().get(0).setTime(time);
|
||||
@ -63,7 +63,7 @@ public class TimeCommand extends SWCommand {
|
||||
@Register
|
||||
public void genericCommand(Player p, Time time) {
|
||||
if (!Permission.hasPermission(p, Permission.WORLD)) {
|
||||
p.sendMessage(BauSystem.PREFIX + ChatColor.RED + "Du darfst hier nicht die Zeit ändern");
|
||||
p.sendMessage(BauSystem.PREFIX + ColorConfig.DISABLE + "Du darfst hier nicht die Zeit ändern");
|
||||
return;
|
||||
}
|
||||
Bukkit.getWorlds().get(0).setTime(time.getValue());
|
||||
|
@ -19,10 +19,10 @@
|
||||
|
||||
package de.steamwar.bausystem.features.other;
|
||||
|
||||
import de.steamwar.bausystem.config.ColorConfig;
|
||||
import de.steamwar.bausystem.linkage.LinkageType;
|
||||
import de.steamwar.bausystem.linkage.Linked;
|
||||
import de.steamwar.command.SWCommand;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -39,7 +39,7 @@ public class WorldSpawnCommand extends SWCommand {
|
||||
|
||||
@Register(help = true)
|
||||
public void genericHelp(Player p, String... args) {
|
||||
p.sendMessage(ChatColor.DARK_GRAY + "/" + ChatColor.YELLOW + "worldspawn " + ChatColor.DARK_GRAY + "-" + ChatColor.GRAY + " Teleportiere dich zum Spawn");
|
||||
p.sendMessage(ColorConfig.OTHER + "/" + ColorConfig.HIGHLIGHT + "worldspawn " + ColorConfig.OTHER + "-" + ColorConfig.BASE + " Teleportiere dich zum Spawn");
|
||||
}
|
||||
|
||||
@Register
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren