Add support for sending players back to any clans hub via portal
This commit is contained in:
parent
275ab52f79
commit
25b0ae5916
@ -91,7 +91,7 @@ public class Portal extends MiniPlugin
|
|||||||
ServerTransferEvent event = new ServerTransferEvent(player, serverName, draggedByParty);
|
ServerTransferEvent event = new ServerTransferEvent(player, serverName, draggedByParty);
|
||||||
Bukkit.getPluginManager().callEvent(event);
|
Bukkit.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
final boolean override = serverName.equalsIgnoreCase("Lobby");
|
final boolean override = serverName.equalsIgnoreCase("Lobby") || serverName.equalsIgnoreCase("ClansHub");
|
||||||
final Rank playerRank = _clientManager.Get(player).GetRank();
|
final Rank playerRank = _clientManager.Get(player).GetRank();
|
||||||
|
|
||||||
if(event.isCancel() && !event.isDraggedByParty())
|
if(event.isCancel() && !event.isDraggedByParty())
|
||||||
|
Loading…
Reference in New Issue
Block a user