Added ability to see which server you were sent from.
This commit is contained in:
parent
96b1df4ee0
commit
2c5471cb34
@ -42,6 +42,7 @@ public class Portal extends MiniPlugin
|
||||
private HashSet<String> _connectingPlayers = new HashSet<String>();
|
||||
|
||||
private Region _region;
|
||||
private String _serverName;
|
||||
|
||||
public Portal(JavaPlugin plugin, CoreClientManager clientManager, String serverName)
|
||||
{
|
||||
@ -51,6 +52,7 @@ public class Portal extends MiniPlugin
|
||||
_clientManager = clientManager;
|
||||
|
||||
_region = plugin.getConfig().getBoolean("serverstatus.us") ? Region.US : Region.EU;
|
||||
_serverName = serverName;
|
||||
_repository = ServerManager.getServerRepository(_region);
|
||||
|
||||
Bukkit.getMessenger().registerOutgoingPluginChannel(getPlugin(), "BungeeCord");
|
||||
@ -216,6 +218,6 @@ public class Portal extends MiniPlugin
|
||||
|
||||
UtilPlayer.message(
|
||||
player,
|
||||
F.main(getName(), "You have been sent to " + C.cGold + serverName));
|
||||
F.main(getName(), "You have been sent from " + _serverName + " to " + C.cGold + serverName));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user