Class SoundAction

java.lang.Object
me.hsgamer.hscore.bukkit.action.SoundAction
All Implemented Interfaces:
Action

public class SoundAction extends Object implements 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 Details

    • SoundAction

      public SoundAction(org.bukkit.plugin.Plugin plugin, String value, float defaultVolume, float defaultPitch)
      Create a new action
      Parameters:
      plugin - the plugin
      value - the value
      defaultVolume - the default volume
      defaultPitch - the default pitch
    • SoundAction

      public SoundAction(org.bukkit.plugin.Plugin plugin, String value)
      Create a new action
      Parameters:
      plugin - the plugin
      value - the value
  • Method Details

    • apply

      public void apply(UUID uuid, TaskProcess process, StringReplacer stringReplacer)
      Description copied from interface: Action
      Apply the action
      Specified by:
      apply in interface Action
      Parameters:
      uuid - the unique id
      process - the task process
      stringReplacer - the string replacer