By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.

OK, Don't show this again

This plugin allows to set an item with an effect and a cooldown
version 4.0.0
Approved
Direct Download How to install?
Switch version
1659 Downloads / 3504 Total
Plugin Description §

StickEffect

It is a plugin that allows to add effects by clicking on configure items

Config.yml

---
# DO NOT TOUCH !
version: 3.0

# Welcome to StickEffect version 1.0.0
# ---
# the {time} notation in the "message" element allows you to take the time of the remaining cooldown
# effect duration is for 20 = 1 second
# the effect level is for 0 = 1 level so level 1 is finally equal to 2
# the "visible" element allows to make appear or not the fantasy bubbles (true:false)
# l'élement "remove" allows to remove the stick at each use

"369:0":
  cooldown: 60 # secondes 
  message: "you have {time} seconds left to use the stick"
  remove: true
  permission:
    enable: false
    perm: 'stick.use'
    message_perm: "§cYou don’t have permission !"
  effect:
    1: # id effect (speed)
      duration: 20 # ticks, 20 = 20 secondes
      niveau: 1 = 1 lvl
      visible: false

"336:0":
  cooldown: 60
  message: "you have {time} seconds left to use the stick"
  remove: true
  permission:
    enable: true
    perm: 'stick2.use'
    message_perm: "§cYou don’t have permission !"
  effect:
    3: # id haste
      duration: 20
      niveau: 2
      visible: true
...

API

The plugin also allows you to have a small API available.

To get the API:

$api = $this->getServer()->getPluginManager()->getPlugin('StickEffect');

functions:

$array = $api->getAllStick(); // array
$stick = $api->getStickFromString('325:0'); // array
$effects = $api->getAllEffectFromStick('325:0'); // array
$perm = $api->hasPermInStick('325:0');  // bool
$permission = $api->getPermissionInStick('325:0'); // string
What's new §
  • Update 4.0.0
  • Update StickListener.php
  • Update config.yml
  • Update plugin.yml
  • config.yml changed !
  • internal server error fix
  • fix crash
  • fix PHP 7.3
  • addition of the possibility to remove the stick at the time of use [3.0.0]

Possibility to put items with a meta, example ("id:meta")

Supported API versions
3.0.0
->
3.25.6
License §
Categories:
Fun
Miscellaneous
Permissions
Other files

You can leave one review per plugin release, and delete or update your review at any time

/ 5
Loading...