Fix a few edge cases with Bungee gates
This commit is contained in:
parent
ac520665e6
commit
d464a16e38
@ -49,3 +49,4 @@ chargefreedestination: true
|
||||
freegatesgreen: false
|
||||
debug: false
|
||||
permdebug: false
|
||||
enableBungee: false
|
@ -1366,7 +1366,7 @@ public class Portal {
|
||||
|
||||
if (!portal.isFixed()) continue;
|
||||
|
||||
if (portal.isBungee()) {
|
||||
if (Stargate.enableBungee && portal.isBungee()) {
|
||||
OpenCount++;
|
||||
portal.open(true);
|
||||
portal.drawSign();
|
||||
|
@ -814,6 +814,13 @@ public class Stargate extends JavaPlugin {
|
||||
|
||||
Stargate.sendMessage(player, Stargate.getString("teleportMsg"), false);
|
||||
if (portal.isBungee()) {
|
||||
|
||||
if (!enableBungee) {
|
||||
player.sendMessage(Stargate.getString("bungeeDisabled"));
|
||||
portal.close(false);
|
||||
return;
|
||||
}
|
||||
|
||||
portal.teleport(player, portal, event);
|
||||
|
||||
// Teleport player via BungeeCord
|
||||
|
Loading…
Reference in New Issue
Block a user