[Version 0.7.2]

- Make it so you can still destroy gates in Survival mode
This commit is contained in:
Steven Scott 2011-11-27 19:54:14 -08:00
parent 7f7b18bd4a
commit a088b2b3d2
3 changed files with 11 additions and 3 deletions

2
README
View File

@ -197,6 +197,8 @@ createConflict=Gate conflicts with existing gate
=============
Changes
=============
[Version 0.7.2]
- Make it so you can still destroy gates in Survival mode
[Version 0.7.1]
- Added destMemory option
- Switched to sign.update() as Bukkit implemented my fix

View File

@ -7,6 +7,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Server;
@ -770,7 +771,10 @@ public class Stargate extends JavaPlugin {
if (portal == null) return;
event.setUseInteractedBlock(Result.DENY);
// Only cancel event in creative mode
if (player.getGameMode().equals(GameMode.CREATIVE)) {
event.setCancelled(true);
}
if (!Stargate.canAccessNetwork(player, portal.getNetwork())) {
Stargate.sendMessage(player, Stargate.getString("denyMsg"));
@ -789,7 +793,9 @@ public class Stargate extends JavaPlugin {
if (portal == null) return;
event.setUseInteractedBlock(Result.DENY);
if (player.getGameMode().equals(GameMode.CREATIVE)) {
event.setCancelled(true);
}
if (!Stargate.canAccessNetwork(player, portal.getNetwork())) {
Stargate.sendMessage(player, Stargate.getString("denyMsg"));

View File

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