0

Fixed stone generators

This commit is contained in:
Pepich 2017-03-02 20:31:47 +01:00
parent ca849074aa
commit a20169c60f

View File

@ -18,7 +18,7 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module;
@AutoRegisterListener
@Version(major = 2, minor = 0, revision = 0, compatible = 2)
@Version(major = 2, minor = 0, revision = 1, compatible = 2)
public class Misc implements Module, Listener
{
private final String[] sudoBlacklist = new String[] {".*:?esudo", ".*:?sudo", ".*:?script.*", ".*:?stop"};
@ -82,9 +82,19 @@ public class Misc implements Module, Listener
@EventHandler
public void onLiquidFlow(BlockFromToEvent event)
{
if (event.getToBlock().getType() != Material.AIR)
Material m = event.getToBlock().getType();
switch (m)
{
case AIR:
case WATER:
case STATIONARY_WATER:
case LAVA:
case STATIONARY_LAVA:
return;
default:
event.setCancelled(true);
}
}
@Command(hook = "tempadddef")
public boolean tempAddDef(CommandSender sender, String user, String group)