Import material removed, material as string

This commit is contained in:
shillingp
2014-06-16 21:24:06 +00:00
parent c2275ee0bc
commit 7508938dbe

View File

@@ -1,5 +1,4 @@
from helpers import * from helpers import *
import org.bukkit.Material as Material
# #
@@ -36,7 +35,7 @@ def onJoin(event):
loginloc = player.getLocation() loginloc = player.getLocation()
# headloc = player.getEyeLocation() # headloc = player.getEyeLocation()
blockmat = loginloc.getBlock().getType() 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") msg(player, "Looks like you spawned in a portal... Let me help you out")
server.dispatchCommand(player, "spawn") server.dispatchCommand(player, "spawn")