[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
|
Changes
|
||||||
=============
|
=============
|
||||||
|
[Version 0.7.2]
|
||||||
|
- Make it so you can still destroy gates in Survival mode
|
||||||
[Version 0.7.1]
|
[Version 0.7.1]
|
||||||
- Added destMemory option
|
- Added destMemory option
|
||||||
- Switched to sign.update() as Bukkit implemented my fix
|
- Switched to sign.update() as Bukkit implemented my fix
|
||||||
|
@ -7,6 +7,7 @@ import java.util.logging.Level;
|
|||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
@ -770,7 +771,10 @@ public class Stargate extends JavaPlugin {
|
|||||||
if (portal == null) return;
|
if (portal == null) return;
|
||||||
|
|
||||||
event.setUseInteractedBlock(Result.DENY);
|
event.setUseInteractedBlock(Result.DENY);
|
||||||
event.setCancelled(true);
|
// Only cancel event in creative mode
|
||||||
|
if (player.getGameMode().equals(GameMode.CREATIVE)) {
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
|
|
||||||
if (!Stargate.canAccessNetwork(player, portal.getNetwork())) {
|
if (!Stargate.canAccessNetwork(player, portal.getNetwork())) {
|
||||||
Stargate.sendMessage(player, Stargate.getString("denyMsg"));
|
Stargate.sendMessage(player, Stargate.getString("denyMsg"));
|
||||||
@ -789,7 +793,9 @@ public class Stargate extends JavaPlugin {
|
|||||||
if (portal == null) return;
|
if (portal == null) return;
|
||||||
|
|
||||||
event.setUseInteractedBlock(Result.DENY);
|
event.setUseInteractedBlock(Result.DENY);
|
||||||
event.setCancelled(true);
|
if (player.getGameMode().equals(GameMode.CREATIVE)) {
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
|
|
||||||
if (!Stargate.canAccessNetwork(player, portal.getNetwork())) {
|
if (!Stargate.canAccessNetwork(player, portal.getNetwork())) {
|
||||||
Stargate.sendMessage(player, Stargate.getString("denyMsg"));
|
Stargate.sendMessage(player, Stargate.getString("denyMsg"));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: Stargate
|
name: Stargate
|
||||||
main: net.TheDgtl.Stargate.Stargate
|
main: net.TheDgtl.Stargate.Stargate
|
||||||
version: 0.7.1
|
version: 0.7.2
|
||||||
description: Stargate mod for Bukkit
|
description: Stargate mod for Bukkit
|
||||||
author: Drakia
|
author: Drakia
|
||||||
website: http://www.thedgtl.net
|
website: http://www.thedgtl.net
|
||||||
|
Loading…
Reference in New Issue
Block a user