Skip to content

Commit

Permalink
Fix a few edge cases with Bungee gates
Browse files Browse the repository at this point in the history
  • Loading branch information
DrakiaXYZ committed Nov 24, 2012
1 parent ac52066 commit d464a16
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ toowner: false
chargefreedestination: true
freegatesgreen: false
debug: false
permdebug: false
permdebug: false
enableBungee: false
2 changes: 1 addition & 1 deletion src/net/TheDgtl/Stargate/Portal.java
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ public static void loadAllGates(World world) {

if (!portal.isFixed()) continue;

if (portal.isBungee()) {
if (Stargate.enableBungee && portal.isBungee()) {
OpenCount++;
portal.open(true);
portal.drawSign();
Expand Down
7 changes: 7 additions & 0 deletions src/net/TheDgtl/Stargate/Stargate.java
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,13 @@ public void onPlayerMove(PlayerMoveEvent event) {

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
Expand Down

0 comments on commit d464a16

Please sign in to comment.