[Version 0.7.2]
- Make it so you can still destroy gates in Survival mode
This commit is contained in:
parent
7f7b18bd4a
commit
a088b2b3d2
2
README
2
README
@ -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
|
||||
|
@ -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"));
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user