Permalink
Browse files

Fixed wrong placment of space in plugin.yml, causing the plugin not n…

…ot load

Fixed fire ignite event returning errors when the fire wasn't placed by a player
  • Loading branch information...
1 parent e9f99db commit af8da7dd2579e6fe074c569b2a27c9ff379b023d @gamerlv committed Mar 21, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 plugin.yml
  2. +1 −0 src/me/aurel2108/freeze/FreezePlayerListener.java
View
@@ -12,4 +12,4 @@ commands:
permissions:
freeze.freeze:
description: Be able to freeze players.
- default:op
+ default: op
@@ -40,6 +40,7 @@ public void onBlockBreak(BlockBreakEvent event)
@EventHandler
public void onBlockIgnite(BlockIgniteEvent event)
{
+ if ( event.getPlayer() == null ) return; //if the fire was already in the world or was placed by the server (fireSpread) this is null
if(Freeze.toFreeze.contains(event.getPlayer().getName()))
{
event.setCancelled(true);

0 comments on commit af8da7d

Please sign in to comment.