From 29b9742df5785fe0585be23ff4d92efb8d358a45 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Wed, 29 Jul 2015 00:06:48 +0200 Subject: [PATCH] Set GM to creative in edit mode --- src/com/dre/dungeonsxl/DPlayer.java | 1 + src/plugin.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/dre/dungeonsxl/DPlayer.java b/src/com/dre/dungeonsxl/DPlayer.java index d2153efb..b59d8f56 100644 --- a/src/com/dre/dungeonsxl/DPlayer.java +++ b/src/com/dre/dungeonsxl/DPlayer.java @@ -71,6 +71,7 @@ public class DPlayer { this.isEditing = isEditing; if (this.isEditing) { + this.player.setGameMode(GameMode.CREATIVE); this.clearPlayerData(); } else { this.player.setGameMode(GameMode.SURVIVAL); diff --git a/src/plugin.yml b/src/plugin.yml index f39e9614..e774f59f 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: DungeonsXL main: com.dre.dungeonsxl.P -version: 0.9.5-SNAPSHOT +version: 0.9.5 author: Frank Baumann authors: [Frank Baumann, Milan Albrecht, Tobias Schmitz, Daniel Saukel] website: http://www.dre2n.ml