Recolored some messages, to the original mcgamerzone style.
This commit is contained in:
parent
ce4a6f759f
commit
5911394e76
@ -111,7 +111,7 @@ public class AccountManager extends Module {
|
|||||||
Rank finalRank = rank;
|
Rank finalRank = rank;
|
||||||
fromCache(player.getUniqueId()).ifPresent(account -> account.setPrimaryRank(finalRank));
|
fromCache(player.getUniqueId()).ifPresent(account -> account.setPrimaryRank(finalRank));
|
||||||
nametagManager.setNametag(player, rank.getNametag(), null, rank.ordinal() + 1);
|
nametagManager.setNametag(player, rank.getNametag(), null, rank.ordinal() + 1);
|
||||||
player.sendMessage(Style.main("Rank", "Your rank was updated to §f" + accountRankSetCommand.getRankDisplayName()));
|
player.sendMessage(Style.main("Rank", "Your rank was updated to §b" + accountRankSetCommand.getRankDisplayName()));
|
||||||
}
|
}
|
||||||
} else if (jedisCommand instanceof AccountRankClearCommand) {
|
} else if (jedisCommand instanceof AccountRankClearCommand) {
|
||||||
AccountRankClearCommand accountRankClearCommand = (AccountRankClearCommand) jedisCommand;
|
AccountRankClearCommand accountRankClearCommand = (AccountRankClearCommand) jedisCommand;
|
||||||
@ -142,7 +142,7 @@ public class AccountManager extends Module {
|
|||||||
if (account.isEmpty() || (!account.get().hasRank(Rank.HELPER)))
|
if (account.isEmpty() || (!account.get().hasRank(Rank.HELPER)))
|
||||||
continue;
|
continue;
|
||||||
String format = staffChatCommand.getPrefix() +
|
String format = staffChatCommand.getPrefix() +
|
||||||
" &7" + staffChatCommand.getUsername() + " &8» &f" + staffChatCommand.getMessage();
|
" &7" + staffChatCommand.getUsername() + " &8» &b" + staffChatCommand.getMessage();
|
||||||
player.sendMessage(Style.main(staffChatCommand.getServer(), format));
|
player.sendMessage(Style.main(staffChatCommand.getServer(), format));
|
||||||
}
|
}
|
||||||
} else if (jedisCommand instanceof PlayerDirectMessageEvent) {
|
} else if (jedisCommand instanceof PlayerDirectMessageEvent) {
|
||||||
|
@ -115,8 +115,8 @@ public class ChatManager extends Module {
|
|||||||
Cooldown cooldown = CooldownHandler.getCooldown(player, "Chat");
|
Cooldown cooldown = CooldownHandler.getCooldown(player, "Chat");
|
||||||
if (cooldown == null)
|
if (cooldown == null)
|
||||||
return;
|
return;
|
||||||
player.sendMessage(Style.main("Chat", "You have to wait &6" + TimeUtils.convertString(cooldown.getRemaining()) + " &7to chat!"));
|
player.sendMessage(Style.main("Chat", "You have to wait &b" + TimeUtils.convertString(cooldown.getRemaining()) + " &7to chat!"));
|
||||||
player.sendMessage(Style.main("Chat", "This can be bypassed by " + Rank.GAMER.getPrefix() + " &7or &bhigher&7!"));
|
player.sendMessage(Style.main("Chat", "This can be bypassed by " + Rank.GAMER.getPrefix() + " &7or &chigher&7!"));
|
||||||
player.playSound(player.getLocation(), XSound.ENTITY_VILLAGER_NO.parseSound(),0.5f, 1f);
|
player.playSound(player.getLocation(), XSound.ENTITY_VILLAGER_NO.parseSound(),0.5f, 1f);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ public class CooldownHandler extends Module {
|
|||||||
if (cooldown.getRemaining() > 0)
|
if (cooldown.getRemaining() > 0)
|
||||||
return false;
|
return false;
|
||||||
if (cooldown.isInform())
|
if (cooldown.isInform())
|
||||||
player.sendMessage(Style.main("Cooldown", "Your cooldown for §f" + cooldown.getName() + " §7has expired"));
|
player.sendMessage(Style.main("Cooldown", "Your cooldown for §b" + cooldown.getName() + " §7has expired"));
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -53,7 +53,7 @@ public class CooldownHandler extends Module {
|
|||||||
.findFirst();
|
.findFirst();
|
||||||
if (optionalCooldown.isPresent()) {
|
if (optionalCooldown.isPresent()) {
|
||||||
if (inform) {
|
if (inform) {
|
||||||
player.sendMessage(Style.error("Cooldown", "§f" + name + " §cis still on cooldown for another §f" +
|
player.sendMessage(Style.error("Cooldown", "§b" + name + " §cis still on cooldown for another §f" +
|
||||||
TimeUtils.convertString(optionalCooldown.get().getRemaining())));
|
TimeUtils.convertString(optionalCooldown.get().getRemaining())));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -42,7 +42,7 @@ public class ServerManager extends Module {
|
|||||||
if (!((ServerRestartCommand) jedisCommand).getServerId().equals(minecraftServer.getId()))
|
if (!((ServerRestartCommand) jedisCommand).getServerId().equals(minecraftServer.getId()))
|
||||||
return;
|
return;
|
||||||
try {
|
try {
|
||||||
traveler.sendAll("Hub", "&6" + minecraftServer.getName() + " &7is restarting");
|
traveler.sendAll("Hub", "&b" + minecraftServer.getName() + " &7is restarting");
|
||||||
} catch (IllegalArgumentException ignored) {}
|
} catch (IllegalArgumentException ignored) {}
|
||||||
Bukkit.getScheduler().scheduleSyncDelayedTask(getPlugin(), () ->
|
Bukkit.getScheduler().scheduleSyncDelayedTask(getPlugin(), () ->
|
||||||
minecraftServer.setState(ServerState.RESTARTING), 10L);
|
minecraftServer.setState(ServerState.RESTARTING), 10L);
|
||||||
|
@ -68,7 +68,7 @@ public class ServerTraveler extends Module {
|
|||||||
public void sendAll(String server, String reason, boolean inform) {
|
public void sendAll(String server, String reason, boolean inform) {
|
||||||
if (reason != null) {
|
if (reason != null) {
|
||||||
Bukkit.broadcastMessage("");
|
Bukkit.broadcastMessage("");
|
||||||
Bukkit.broadcastMessage(Style.color(" &c➢ &7" + reason));
|
Bukkit.broadcastMessage(Style.color(" &c➢ &b" + reason));
|
||||||
Bukkit.broadcastMessage("");
|
Bukkit.broadcastMessage("");
|
||||||
}
|
}
|
||||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||||
@ -137,7 +137,7 @@ public class ServerTraveler extends Module {
|
|||||||
if (MGZPlugin.getMinecraftServer().equals(server))
|
if (MGZPlugin.getMinecraftServer().equals(server))
|
||||||
throw new IllegalArgumentException("Player is already connected");
|
throw new IllegalArgumentException("Player is already connected");
|
||||||
if (inform) {
|
if (inform) {
|
||||||
player.sendMessage(new ComponentBuilder(Style.main("Traveler", "Connecting to &6" + server.getName()))
|
player.sendMessage(new ComponentBuilder(Style.main("Traveler", "Connecting to &b" + server.getName()))
|
||||||
.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(MiscUtils.arrayToString(
|
.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(MiscUtils.arrayToString(
|
||||||
Style.color("&7Server Id: &6" + server.getId()),
|
Style.color("&7Server Id: &6" + server.getId()),
|
||||||
Style.color("&7Type: &6" + server.getGroup().getName())
|
Style.color("&7Type: &6" + server.getGroup().getName())
|
||||||
|
@ -92,7 +92,7 @@ public class ServerUpdater extends Module {
|
|||||||
private void update() {
|
private void update() {
|
||||||
MinecraftServer minecraftServer = MGZPlugin.getMinecraftServer();
|
MinecraftServer minecraftServer = MGZPlugin.getMinecraftServer();
|
||||||
try {
|
try {
|
||||||
traveler.sendAll("Hub", "&6" + minecraftServer.getName() + " &7is being updated");
|
traveler.sendAll("Hub", "&b" + minecraftServer.getName() + " &7is being updated");
|
||||||
} catch (IllegalArgumentException ignored) {}
|
} catch (IllegalArgumentException ignored) {}
|
||||||
Bukkit.getScheduler().scheduleSyncDelayedTask(getPlugin(), () -> minecraftServer.setState(ServerState.UPDATING), 10L);
|
Bukkit.getScheduler().scheduleSyncDelayedTask(getPlugin(), () -> minecraftServer.setState(ServerState.UPDATING), 10L);
|
||||||
Bukkit.getScheduler().scheduleSyncDelayedTask(getPlugin(), Bukkit::shutdown, 40L);
|
Bukkit.getScheduler().scheduleSyncDelayedTask(getPlugin(), Bukkit::shutdown, 40L);
|
||||||
|
@ -15,6 +15,7 @@ public enum WorldCategory {
|
|||||||
THE_BRIDGE("The Bridge", XMaterial.END_STONE),
|
THE_BRIDGE("The Bridge", XMaterial.END_STONE),
|
||||||
DISASTERS("Disasters", XMaterial.LAVA_BUCKET),
|
DISASTERS("Disasters", XMaterial.LAVA_BUCKET),
|
||||||
CHAOSPVP("Chaospvp", XMaterial.IRON_SWORD),
|
CHAOSPVP("Chaospvp", XMaterial.IRON_SWORD),
|
||||||
|
TNT_WARS("TnT Wars", XMaterial.TNT),
|
||||||
SKYBLOCK("Skyblock", XMaterial.GRASS_BLOCK),
|
SKYBLOCK("Skyblock", XMaterial.GRASS_BLOCK),
|
||||||
PRISON("Prison", XMaterial.IRON_BARS),
|
PRISON("Prison", XMaterial.IRON_BARS),
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user