Class PackActionAssignment
java.lang.Object
de.themoep.resourcepacksplugin.core.PackAssignment
de.themoep.resourcepacksplugin.core.PackActionAssignment
public class PackActionAssignment
extends de.themoep.resourcepacksplugin.core.PackAssignment
-
Constructor Summary
ConstructorDescriptionPackActionAssignment
(de.themoep.resourcepacksplugin.core.PackAssignment assignment) PackActionAssignment
(String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAction
(de.themoep.resourcepacksplugin.core.ResourcePack pack, ResourcePackStatus status, PackAction action, boolean firstJoin) Add an action to a server to react on a specific status for a specific packvoid
addAction
(ResourcePackStatus status, ActionType action, String msg) Deprecated.void
addAction
(ResourcePackStatus status, ActionType action, String msg, boolean firstJoin) Add an action to a server to react on a specific status with a sendMessagevoid
addAction
(ResourcePackStatus status, PackAction action) Deprecated.void
addAction
(ResourcePackStatus status, PackAction action, boolean firstJoin) Add an action to a server to react on a specific statusgetActions
(de.themoep.resourcepacksplugin.core.ResourcePack pack) getActions
(de.themoep.resourcepacksplugin.core.ResourcePack pack, ResourcePackStatus status, boolean firstJoin) Get all actions for a certain status for a certain packgetActions
(ResourcePackStatus status) Deprecated.getActions
(ResourcePackStatus status, boolean firstJoin) Get all actions for a certain status no matter the packgetActions
(String packName) getFirstJoinActions
(de.themoep.resourcepacksplugin.core.ResourcePack pack) getFirstJoinActions
(String packName) Get the raw message that the prompt screen will showString[]
protected String[]
boolean
Whether or not the client should show the required screen when promptingvoid
setPromptMessage
(String promptMessage) Set the raw message that the prompt screen will showvoid
setRequired
(boolean force) Set whether or not the client should show the required screen when promptingtoString()
boolean
update
(de.themoep.resourcepacksplugin.core.commands.PluginCommandExecutor command, de.themoep.resourcepacksplugin.core.ResourcepacksPlayer sender, String[] args) Methods inherited from class de.themoep.resourcepacksplugin.core.PackAssignment
addOptionalPack, addOptionalPack, addPack, addPack, addSecondary, addSecondary, getName, getOptionalPacks, getPack, getPacks, getRegex, getSecondaries, getSendDelay, isEmpty, isOptionalPack, isOptionalPack, isPack, isPack, isSecondary, isSecondary, removeOptionalPack, removeOptionalPack, removePack, removePack, removeSecondary, removeSecondary, setPack, setPack, setRegex, setSendDelay
-
Constructor Details
-
PackActionAssignment
-
PackActionAssignment
public PackActionAssignment(de.themoep.resourcepacksplugin.core.PackAssignment assignment)
-
-
Method Details
-
isRequired
public boolean isRequired()Whether or not the client should show the required screen when prompting- Returns:
- Whether or not the required screen will show
-
setRequired
public void setRequired(boolean force) Set whether or not the client should show the required screen when prompting- Parameters:
force
- Whether or not the required screen will show
-
getPromptMessage
Get the raw message that the prompt screen will show- Returns:
- The raw message that the prompt screen will show
-
setPromptMessage
Set the raw message that the prompt screen will show- Parameters:
promptMessage
- The raw message that the prompt screen will show
-
addAction
Deprecated.Add an action to a server to react on a specific status- Parameters:
status
- The ResourcePackStatusaction
- The action to execute
-
addAction
Add an action to a server to react on a specific status- Parameters:
status
- The ResourcePackStatusaction
- The action to executefirstJoin
- Is this action run on first join?
-
addAction
public void addAction(de.themoep.resourcepacksplugin.core.ResourcePack pack, ResourcePackStatus status, PackAction action, boolean firstJoin) Add an action to a server to react on a specific status for a specific pack- Parameters:
pack
- The pack to react onstatus
- The ResourcePackStatusaction
- The action to executefirstJoin
- Is this action run on first join?
-
addAction
Deprecated.Add an action to a server to react on a specific status with a sendMessage- Parameters:
status
- The ResourcePackStatusaction
- The action to executemsg
- An additional sendMessage for the action
-
addAction
Add an action to a server to react on a specific status with a sendMessage- Parameters:
status
- The ResourcePackStatusaction
- The action to executemsg
- An additional sendMessage for the actionfirstJoin
- Is this action run on first join?
-
getActions
Deprecated.Get all actions for a certain status- Parameters:
status
- The status to get the action for- Returns:
- A collection of actions for this assignment
-
getActions
Get all actions for a certain status no matter the pack- Parameters:
status
- The status to get the action forfirstJoin
- Is this action run on first join?- Returns:
- A collection of actions for this assignment
-
getActions
public Map<ActionType,PackAction> getActions(de.themoep.resourcepacksplugin.core.ResourcePack pack, ResourcePackStatus status, boolean firstJoin) Get all actions for a certain status for a certain pack- Parameters:
pack
- The pack to get the action forstatus
- The status to get the action forfirstJoin
- Is this action run on first join?- Returns:
- A collection of actions for this assignment
-
getActions
-
getActions
public Map<ResourcePackStatus,Map<ActionType, getActionsPackAction>> (de.themoep.resourcepacksplugin.core.ResourcePack pack) -
getActions
-
getFirstJoinActions
-
getFirstJoinActions
public Map<ResourcePackStatus,Map<ActionType, getFirstJoinActionsPackAction>> (de.themoep.resourcepacksplugin.core.ResourcePack pack) -
getFirstJoinActions
-
toString
- Overrides:
toString
in classde.themoep.resourcepacksplugin.core.PackAssignment
-
serialize
- Overrides:
serialize
in classde.themoep.resourcepacksplugin.core.PackAssignment
-
getReplacements
- Overrides:
getReplacements
in classde.themoep.resourcepacksplugin.core.PackAssignment
-
getUpdateActions
- Overrides:
getUpdateActions
in classde.themoep.resourcepacksplugin.core.PackAssignment
-
update
public boolean update(de.themoep.resourcepacksplugin.core.commands.PluginCommandExecutor command, de.themoep.resourcepacksplugin.core.ResourcepacksPlayer sender, String[] args) - Overrides:
update
in classde.themoep.resourcepacksplugin.core.PackAssignment
-
addAction(ResourcePackStatus, ActionType, String, boolean)