Package me.hsgamer.hscore.bukkit.action
Class SoundAction
java.lang.Object
me.hsgamer.hscore.bukkit.action.SoundAction
- All Implemented Interfaces:
Action
The action to play a sound at a player.
The sound value can be either a
Sound or a raw sound.
The volume and pitch can be configured by using the format of sound, volume, pitch.-
Constructor Summary
ConstructorsConstructorDescriptionSoundAction(org.bukkit.plugin.Plugin plugin, String value) Create a new actionSoundAction(org.bukkit.plugin.Plugin plugin, String value, float defaultVolume, float defaultPitch) Create a new action -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(UUID uuid, TaskProcess process, StringReplacer stringReplacer) Apply the action
-
Constructor Details
-
SoundAction
public SoundAction(org.bukkit.plugin.Plugin plugin, String value, float defaultVolume, float defaultPitch) Create a new action- Parameters:
plugin- the pluginvalue- the valuedefaultVolume- the default volumedefaultPitch- the default pitch
-
SoundAction
Create a new action- Parameters:
plugin- the pluginvalue- the value
-
-
Method Details