public CarpetSpell(MagicConfig config, String spellName) { super(config, spellName); MagicMaterial m = MagicSpells.getItemNameResolver().resolveBlock(getConfigString("platform-block", "glass")); if (m != null) { platformBlock = m.getMaterial(); } else { platformBlock = Material.GLASS; } size = getConfigInt("size", 2); cancelOnTeleport = getConfigBoolean("cancel-on-teleport", true); windwalkers = new HashMap<String, BlockPlatform>(); falling = new HashSet<Player>(); }