All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.aurelium.auraskills.api.region.LocationManager Maven / Gradle / Ivy

There is a newer version: 2.2.3
Show newest version
package dev.aurelium.auraskills.api.region;

import dev.aurelium.auraskills.api.skill.Skill;
import org.bukkit.Location;
import org.bukkit.entity.Player;

public interface LocationManager {

    /**
     * Checks whether the given locations is blocked from giving XP by the config or WorldGuard.
     *
     * @param location the location to check
     * @return whether XP gain is blocked
     */
    boolean isXpGainBlocked(Location location, Player player, Skill skill);

    /**
     * Gets whether the plugin features are disabled in a location. If disabled,
     * all skills, stats, and abilities should not function.
     *
     * @param location the location to check
     * @return whether the plugin is disabled
     */
    boolean isPluginDisabled(Location location, Player player);

    /**
     * Gets whether tracking for player-placed blocks is disabled at a given location.
     *
     * @param location the location to check
     * @return whether check replace is disabled
     */
    boolean isCheckReplaceDisabled(Location location);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy