2020-01-20 11:55:18 +01:00
|
|
|
package com.sekwah.advancedportals.bukkit.api.warphandler;
|
2016-07-31 04:22:43 +02:00
|
|
|
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
|
|
|
public class TagHandler {
|
|
|
|
|
|
|
|
public interface Creation{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Example if the player does not have access to use a tag on the portal.
|
|
|
|
* @param player
|
|
|
|
* @param activeData
|
|
|
|
* @param argData
|
|
|
|
* @return if the portal can be created.
|
|
|
|
*/
|
|
|
|
boolean portalCreated(Player player, ActivationData activeData, String argData);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Example if the player does not have access to remove the portal.
|
|
|
|
* @param player
|
|
|
|
* @param activeData
|
|
|
|
* @param argData
|
|
|
|
* @return if the portal can be destroyed.
|
|
|
|
*/
|
|
|
|
boolean portalDestroyed(Player player, ActivationData activeData, String argData);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface Activation{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Activates before the main part of portal activation.
|
|
|
|
* @param player
|
|
|
|
* @param activeData
|
|
|
|
* @param argData
|
|
|
|
*/
|
|
|
|
void portalPreActivated(Player player, ActivationData activeData, String argData);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Activates after portal activation
|
|
|
|
* @param player
|
|
|
|
* @param activeData
|
|
|
|
* @param argData
|
|
|
|
*/
|
|
|
|
void portalPostActivated(Player player, ActivationData activeData, String argData);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Activates if the portal is allowed from pre
|
|
|
|
* @param player
|
|
|
|
* @param activeData
|
|
|
|
* @param argData
|
|
|
|
*/
|
|
|
|
void portalActivated(Player player, ActivationData activeData, String argData);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface TagStatus{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If the user has access to add the tag
|
|
|
|
* @param player
|
|
|
|
* @param activeData
|
|
|
|
* @param argData
|
|
|
|
* @return if the tag will be added.
|
|
|
|
*/
|
|
|
|
boolean tagAdded(Player player, ActivationData activeData, String argData);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* If the user has access to remove the tag
|
|
|
|
* @param player
|
|
|
|
* @param activeData
|
|
|
|
* @param argData
|
|
|
|
* @return if the tag will be removed.
|
|
|
|
*/
|
2023-11-05 10:36:47 +01:00
|
|
|
boolean tagRemoved(Player player, ActivationData activeData, String argData);
|
2016-07-31 04:22:43 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|