Sueta

PushAway

1.0.3

Keep players away! Launch any player in 360 degrees around you.

·Plugin

PushAwayBanner.png
Wiki | Issues | Source Code | Permissions

Launch players away from you!

What does this plugin do?
It is very simple, you do /pushaway give, or any of the commands found here. Then you can right click with the item to launch players away from you.

The launch distance and radius is all configurable, feel free to send them sky high or make them take a slight hop :)

Config
# Range is how close players have to be to get launched
# Launch-X is how far horizontally they get launched
# Launch-Y is how far vertically they get launched
Push-Away-Range: 3
Push-Away-Launch-X: .7
Push-Away-Launch-Y: .5
Usage-Cooldown: 5
Wand:
  Material: "RECORD_3"
  Name: "&a&lPushAway Wand"
  Lore:
    - "&7Right click to &epush &7players away!"
    - "&7Works up to &e%range% blocks"
Sound:
  On-Push:
    Enabled: true
    Sound: "BLOCK_ANVIL_PLACE"
    Volume: 1.0
    Pitch: 1.0
  When-Pushed:
    Enabled: true
    Sound: "ENTITY_BLAZE_SHOOT"
    Volume: 1.0
    Pitch: 1.0
Messages:
  Permission: "&cYou do not have permission to use this command!"
  Given-Wand: "&7You have been given a &a&lPushAway Wand&7!"
  Give-Other-Wand: "&7You have given &e%player% &7a &a&lPushAway Wand&7!"
  Pushed-Players: "&7You have &e&lLAUNCHED &a%num% &7players away from you!"
  Pushed-By-Player: "&7You have been &epushed away &7by &c%player%&7!"
  No-Players-Nearby: "&7There are no players nearby!"
  Cooldown: "&cYou are on cooldown for &e%time% &cmore seconds!"
Permissions
permissions:
  pushaway.*:
    children:
      pushaway.reload: true
      pushaway.use: true
      pushaway.givewand: true
      pushaway.givewand.others: true
      pushaway.bypass-cooldown: true
  pushaway.use:
    description: Allow the player to use the wand.
    default: op
  pushaway.givewand:
    description: Allow the player to give themselves a wand.
    default: op
  pushaway.givewand.others:
    description: Allow the player to give anyone a wand.
    default: op
    children:
      pushaway.givewand: true
  pushaway.reload:
    description: Reload the configuration file.
    default: op
  pushaway.bypass-cooldown:
    description: Bypass the cooldown to use the push away item.
    default: op

To Do
- Add preset particle effects
- Add option to keep give the item on join if the player doesn't have one
- Add option to not allow removal of the push item
- Add option to ensure the item is always in the users inventory
- Create API tool for developers who want to send people flying.

Similar projects

Plugin →