From 7508938dbe4cb633df181c8ca4abc6ac35628c6d Mon Sep 17 00:00:00 2001
From: shillingp
Date: Mon, 16 Jun 2014 21:24:06 +0000
Subject: [PATCH] Import material removed, material as string
---
misc.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/misc.py b/misc.py
index 590a7b4..3f09513 100644
--- a/misc.py
+++ b/misc.py
@@ -1,5 +1,4 @@
from helpers import *
-import org.bukkit.Material as Material
#
@@ -36,7 +35,7 @@ def onJoin(event):
loginloc = player.getLocation()
# headloc = player.getEyeLocation()
blockmat = loginloc.getBlock().getType()
- if blockmat == Material.PORTAL:
+ if str(blockmat) == "PORTAL":
msg(player, "Looks like you spawned in a portal... Let me help you out")
server.dispatchCommand(player, "spawn")