This commit is contained in:
Steven Scott 2012-04-21 18:35:13 -07:00
parent 5a872f3c86
commit 49120b1f8d
3 changed files with 5 additions and 1 deletions

2
README
View File

@ -205,6 +205,8 @@ createConflict=Gate conflicts with existing gate
============= =============
Changes Changes
============= =============
[Version 0.7.6.6]
- Check move/portal/interact/signchange events for cancellation
[Version 0.7.6.5] [Version 0.7.6.5]
- Resolve issue with buttons on glass gates falling off - Resolve issue with buttons on glass gates falling off
- /sg reload can now be used ingame (stargate.admin.reload permission) - /sg reload can now be used ingame (stargate.admin.reload permission)

View File

@ -691,6 +691,7 @@ public class Stargate extends JavaPlugin {
private class pListener implements Listener { private class pListener implements Listener {
@EventHandler @EventHandler
public void onPlayerPortal(PlayerPortalEvent event) { public void onPlayerPortal(PlayerPortalEvent event) {
if (event.isCancelled()) return;
// Do a quick check for a stargate // Do a quick check for a stargate
Location from = event.getFrom(); Location from = event.getFrom();
if (from == null) { if (from == null) {
@ -896,6 +897,7 @@ public class Stargate extends JavaPlugin {
private class bListener implements Listener { private class bListener implements Listener {
@EventHandler @EventHandler
public void onSignChange(SignChangeEvent event) { public void onSignChange(SignChangeEvent event) {
if (event.isCancelled()) return;
Player player = event.getPlayer(); Player player = event.getPlayer();
Block block = event.getBlock(); Block block = event.getBlock();
if (block.getType() != Material.WALL_SIGN) return; if (block.getType() != Material.WALL_SIGN) return;

View File

@ -1,6 +1,6 @@
name: Stargate name: Stargate
main: net.TheDgtl.Stargate.Stargate main: net.TheDgtl.Stargate.Stargate
version: 0.7.6.5 version: 0.7.6.6
description: Stargate mod for Bukkit description: Stargate mod for Bukkit
author: Drakia author: Drakia
website: http://www.thedgtl.net website: http://www.thedgtl.net