Class PurgeWorlds


  • @Deprecated
    public class PurgeWorlds
    extends java.lang.Object
    Deprecated.
    Use instead: WorldPurger and SimpleWorldPurger.
    Utility class that removes animals from worlds that don't belong there.
    • Constructor Detail

      • PurgeWorlds

        public PurgeWorlds​(MultiverseCore plugin)
        Deprecated.
    • Method Detail

      • purgeWorlds

        public void purgeWorlds​(org.bukkit.command.CommandSender sender,
                                java.util.List<MultiverseWorld> worlds)
        Deprecated.
        Synchronizes the given world with it's settings.
        Parameters:
        sender - The CommandSender who is requesting the world be purged.
        worlds - A list of MultiverseWorld
      • purgeWorld

        public void purgeWorld​(org.bukkit.command.CommandSender sender,
                               MultiverseWorld mvworld,
                               java.util.List<java.lang.String> thingsToKill,
                               boolean negateAnimals,
                               boolean negateMonsters)
        Deprecated.
        Clear all animals/monsters that do not belong to a world according to the config.
        Parameters:
        sender - The CommandSender that initiated the action.
        mvworld - The MultiverseWorld.
        thingsToKill - A List of animals/monsters to be killed.
        negateAnimals - Whether the monsters in the list should be negated.
        negateMonsters - Whether the animals in the list should be negated.