This commit is contained in:
Steven Lawson 2012-09-19 23:17:10 -04:00
parent 5ed6df2306
commit 5785cc2164
2 changed files with 13 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class Command_potion extends TFM_Command
return true; return true;
} }
for (PotionEffect potion_effect : sender_p.getActivePotionEffects()) for (PotionEffect potion_effect : target.getActivePotionEffects())
{ {
target.removePotionEffect(potion_effect.getType()); target.removePotionEffect(potion_effect.getType());
} }

View File

@ -12,6 +12,7 @@ import org.apache.commons.lang.exception.ExceptionUtils;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.Server; import org.bukkit.Server;
import org.bukkit.World;
import org.bukkit.command.Command; import org.bukkit.command.Command;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.FileConfiguration;
@ -76,6 +77,17 @@ public class TotalFreedomMod extends JavaPlugin
{ {
TFM_Util.generateFlatlands(flatlandsGenerationParams); TFM_Util.generateFlatlands(flatlandsGenerationParams);
} }
if (disableWeather)
{
for (World world : server.getWorlds())
{
world.setThundering(false);
world.setStorm(false);
world.setThunderDuration(0);
world.setThunderDuration(0);
}
}
} }
@Override @Override