diff --git a/.gitignore b/.gitignore
index c1fc8b034..970fac184 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@ update
Reference
/Plugins/.idea/workspace.xml
+/Plugins/.idea/tasks.xml
/Plugins/out
BungeeCord
/Plugins/Mineplex.Bungee.Mineplexer/*.gitignore
diff --git a/Art/Halloween Horror.jpg b/Art/Halloween Horror.jpg
new file mode 100644
index 000000000..b82bc42a3
Binary files /dev/null and b/Art/Halloween Horror.jpg differ
diff --git a/Art/Pumpkin.png b/Art/Pumpkin.png
new file mode 100644
index 000000000..81ea7c47e
Binary files /dev/null and b/Art/Pumpkin.png differ
diff --git a/Art/Spooky Sale.png b/Art/Spooky Sale.png
new file mode 100644
index 000000000..75ea457d6
Binary files /dev/null and b/Art/Spooky Sale.png differ
diff --git a/Plugins/.idea/artifacts/Mineplex_Hub_jar.xml b/Plugins/.idea/artifacts/Mineplex_Hub_jar.xml
index 150c21bc3..370ba8bd7 100644
--- a/Plugins/.idea/artifacts/Mineplex_Hub_jar.xml
+++ b/Plugins/.idea/artifacts/Mineplex_Hub_jar.xml
@@ -20,6 +20,7 @@
+
\ No newline at end of file
diff --git a/Plugins/.idea/artifacts/Nautilus_Game_Arcade_jar.xml b/Plugins/.idea/artifacts/Nautilus_Game_Arcade_jar.xml
index ca2ed67aa..619cdf3df 100644
--- a/Plugins/.idea/artifacts/Nautilus_Game_Arcade_jar.xml
+++ b/Plugins/.idea/artifacts/Nautilus_Game_Arcade_jar.xml
@@ -19,6 +19,7 @@
+
\ No newline at end of file
diff --git a/Plugins/.idea/compiler.xml b/Plugins/.idea/compiler.xml
index bd35e0f52..37717d4dc 100644
--- a/Plugins/.idea/compiler.xml
+++ b/Plugins/.idea/compiler.xml
@@ -4,6 +4,7 @@
+
diff --git a/Plugins/.idea/dataSources.xml b/Plugins/.idea/dataSources.xml
new file mode 100644
index 000000000..16b134887
--- /dev/null
+++ b/Plugins/.idea/dataSources.xml
@@ -0,0 +1,19 @@
+
+
+
+
+ mysql
+ true
+ com.mysql.jdbc.Driver
+ jdbc:mysql://db.mineplex.com:3306
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Plugins/.idea/modules.xml b/Plugins/.idea/modules.xml
index bcc0470f4..f7936ba2e 100644
--- a/Plugins/.idea/modules.xml
+++ b/Plugins/.idea/modules.xml
@@ -11,7 +11,6 @@
-
diff --git a/Plugins/Libraries/Votifier.jar b/Plugins/Libraries/Votifier.jar
new file mode 100644
index 000000000..9751f180a
Binary files /dev/null and b/Plugins/Libraries/Votifier.jar differ
diff --git a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancer.java b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancer.java
index 55427e477..443dc104b 100644
--- a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancer.java
+++ b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancer.java
@@ -96,6 +96,8 @@ public class LobbyBalancer implements Listener, Runnable
if (timeSpentInLock > 50)
System.out.println("[==] TIMING [==] Locked loading servers for " + timeSpentInLock + "ms");
+
+ _lobbyIndex = 0;
}
}
}
diff --git a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/motd/MotdManager.java b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/motd/MotdManager.java
index 75cf934cf..c1cba124c 100644
--- a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/motd/MotdManager.java
+++ b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/motd/MotdManager.java
@@ -55,12 +55,12 @@ public class MotdManager implements Listener, Runnable
//String motdLine = "§f§l◄ §c§lMaintenance§f§l ►";
//String motdLine = "§f§l◄ §a§lCarl the Creeper§f§l ►";
- String motdLine = " §b§l◄§f§lNEW GAME§b§l► §f§l◄§b§lEVOLUTION§f§l► §b§l◄§f§lNEW GAME§b§l►";
+ String motdLine = " §2§l§n M O N S T E R M A Z E B E T A §f";
//String motdLine = " §f§l◄ §a§lCarl the Creeper§f§l ▬ §c§l75% OFF SALE§f§l ►";
//String motdLine = " §d§lRank Sale §a§l40% Off");
//String motdLine = " §f§l◄§c§lMAINTENANCE§f§l►");
- updateMainMotd(" §b§l§m §8§l§m[ §r §9§lMineplex§r §f§lGames§r §8§l§m ]§b§l§m §r", motdLine);
+ updateMainMotd(" §4§l§m §f§l§m §8§l§m[ §r §4§lMineplex§r §f§lGames§r §8§l§m ]§f§l§m §4§l§m §r", motdLine);
System.out.println("Updated Bungee MOTD");
}
}
diff --git a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCount.java b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCount.java
index 2543d2609..2b97f9b62 100644
--- a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCount.java
+++ b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCount.java
@@ -24,7 +24,6 @@ public class PlayerCount implements Listener, Runnable
{
private DataRepository _repository;
private DataRepository _secondRepository;
- private UUID _uuid;
private Region _region;
private ListenerInfo _listenerInfo;
@@ -34,7 +33,6 @@ public class PlayerCount implements Listener, Runnable
public PlayerCount(Plugin plugin)
{
- _uuid = UUID.randomUUID();
_region = !new File("eu.dat").exists() ? Region.US : Region.EU;
_plugin = plugin;
@@ -86,7 +84,7 @@ public class PlayerCount implements Listener, Runnable
*/
private BungeeServer generateSnapshot()
{
- String name = _uuid.toString(); // Use random UUID for unique id name.
+ String name = _listenerInfo.getHost().getAddress().getHostAddress();
String host = _listenerInfo.getHost().getAddress().getHostAddress();
int port = _listenerInfo.getHost().getPort();
boolean connected = InternetStatus.isConnected();
diff --git a/Plugins/Mineplex.BungeeRotator/src/mineplex/bungee/BungeeRotator.java b/Plugins/Mineplex.BungeeRotator/src/mineplex/bungee/BungeeRotator.java
index 22be0d855..2dd88a8e3 100644
--- a/Plugins/Mineplex.BungeeRotator/src/mineplex/bungee/BungeeRotator.java
+++ b/Plugins/Mineplex.BungeeRotator/src/mineplex/bungee/BungeeRotator.java
@@ -141,7 +141,7 @@ public class BungeeRotator
else
euPlayers += server.getPlayerCount();
- System.out.println(server.getRegion().toString() + " " + server.getPublicAddress() + " " + server.getPlayerCount() + "/" + server.getPlayerCount());
+ System.out.println(server.getRegion().toString() + " " + server.getName() + " " + server.getPublicAddress() + " " + server.getPlayerCount() + "/" + server.getPlayerCount());
}
System.out.println("US Players : " + usPlayers);
@@ -247,6 +247,9 @@ public class BungeeRotator
new ApiDeleteCall("https://api.dnsmadeeasy.com/V2.0/dns/managed/", 962728, "/records?" + idBuilder.toString()).Execute();
log("Deleted " + recordsToDelete.size() + " records.");
}
+
+ _repository.clean();
+ _secondRepository.clean();
}
/*
diff --git a/Plugins/Mineplex.Core.Common/src/mineplex/core/common/Rank.java b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/Rank.java
index 8cab61a15..45fd28921 100644
--- a/Plugins/Mineplex.Core.Common/src/mineplex/core/common/Rank.java
+++ b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/Rank.java
@@ -9,15 +9,16 @@ import mineplex.core.common.util.UtilPlayer;
public enum Rank
{
//Staff
- LT("LT", ChatColor.DARK_RED),
- OWNER("Owner", ChatColor.DARK_RED),
- DEVELOPER("Dev", ChatColor.RED),
- ADMIN("Admin", ChatColor.RED),
- JNR_DEV("Jr.Dev", ChatColor.RED),
+ LT("Leader", ChatColor.GOLD),
+ OWNER("Owner", ChatColor.GOLD),
+ DEVELOPER("Dev", ChatColor.GOLD),
+ ADMIN("Admin", ChatColor.GOLD),
+ JNR_DEV("Jr.Dev", ChatColor.GOLD),
+ SUPPORT("Support", ChatColor.BLUE),
SNR_MODERATOR("Sr.Mod", ChatColor.GOLD),
MODERATOR("Mod", ChatColor.GOLD),
HELPER("Trainee", ChatColor.DARK_AQUA),
- MAPLEAD("MapLead", ChatColor.DARK_PURPLE),
+ MAPLEAD("MapLead", ChatColor.BLUE),
MAPDEV("Builder", ChatColor.BLUE),
MEDIA("Media", ChatColor.BLUE),
@@ -29,6 +30,7 @@ public enum Rank
TWITCH("Twitch", ChatColor.DARK_PURPLE),
//Player
+ TITAN("Titan", ChatColor.RED, true),
LEGEND("Legend", ChatColor.GREEN, true),
HERO("Hero", ChatColor.LIGHT_PURPLE, true),
ULTRA("Ultra", ChatColor.AQUA, true),
diff --git a/Plugins/Mineplex.Core.Common/src/mineplex/core/common/lang/IntlString.java b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/lang/IntlString.java
new file mode 100644
index 000000000..fada15f15
--- /dev/null
+++ b/Plugins/Mineplex.Core.Common/src/mineplex/core/common/lang/IntlString.java
@@ -0,0 +1,232 @@
+package mineplex.core.common.lang;
+
+import java.text.Format;
+import java.text.MessageFormat;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Locale;
+
+import org.bukkit.ChatColor;
+import org.bukkit.entity.Entity;
+import org.bukkit.entity.Player;
+
+public class IntlString
+{
+
+ public static IntlString[] toIntl(String... strings)
+ {
+ IntlString[] intl = new IntlString[strings.length];
+
+ for (int i = 0; i < strings.length; i++) {
+ final String string = strings[i];
+ intl[i] = new IntlString("")
+ {
+ public String tr(Locale locale)
+ {
+ return string;
+ }
+ };
+ }
+
+ return intl;
+ }
+
+ /**
+ * An empty {@link IntlString}.
+ */
+ public static final IntlString EMPTY = toIntl("")[0];
+
+ private final Argument key;
+ private final List> arguments = new ArrayList<>();
+
+ public IntlString(String key, ChatColor... styles)
+ {
+ this.key = new Argument<>(key, styles);
+ }
+
+ IntlString(String key, String style)
+ {
+ this.key = new Argument<>(key, style);
+ }
+
+ private IntlString arg(Argument