Sueta

Scepter Boost Plugin

1.0

fun pvp

·Plugin

Wath is Scepter Boost ?
Scepter boost is a fun plugin and api for scepter. When you right click with the scepter you have a custom effect.

How work the plugin ?
In the config you can change the permission of the command and the use permission. And the most important, the scepter, by default it's only speed. But you can add other:

<Put here the name of minecraft effect>:
    cooldown: 30 ( in seconds )
    level: 3
    long: 5 ( in seconds )

You can add several scepters.
And finally you can get with the command /scepter <ID OF SCEPTER>
OR /scepter random

I'm developper how can use it ?
First, if you want to give or get the default scepters generate with the config :

Get item default
ScepterAPI.getItem(int ID);
ScepterAPI.getRandom();

-> Return ItemStack


Second, if you want add your custom scepter, it's esay :

Custom scepter
final ScpetreDefault custom = new ScpetreDefault( CUSTOM NAME WITH COLOR, Cooldown , level, long, PotionEffectType );

ScepterAPI.SCEPTRES.add(custom);

player.getInventory().addItem(ScepterAPI.getItem(custom));


Thirdly, if you want execute a something or disable the scpeter you can do that :

Custom Execute
public class myNewScepter extends ScpetreDefault {

       public myNewScepter(){
             super(CUSTOM NAME WITH COLOR, Cooldown , level, long, PotionEffectType );
       }
      public boolean onApply(Player player) {
             // do something
           // RETURN FALSE IF YOU WANT DISABLE  execution of effect
           // TRUE this is going normally
            return  true;
       }
}

Finally, the scepters are not stackable.

Similar projects

Plugin →