Scepter Boost Plugin 1.0

fun pvp

  1. pigeonmal
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    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:
    Code (Text):
    <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
    Code (Text):
    SPEED, SLOW, FAST_DIGGING, SLOW_DIGGING, INCREASE_DAMAGE, HEAL, HARM, JUMP, CONFUSION,
    REGENERATION, DAMAGE_RESISTANCE, FIRE_RESISTANCE , WATER_BREATHING, INVISIBILITY,
    BLINDNESS, NIGHT_VISION, HUNGER, WEAKNESS, POISON, WITHER, HEALTH_BOOST,
    ABSORPTION, SATURATION, ...

    I'm developper how can use it ?

    First, if you want to give or get the default scepters generate with the config :
    Code (Text):

    ScepterAPI.getItem(int ID);
    ScepterAPI.getRandom();

    -> Return ItemStack
     

    Second, if you want add your custom scepter, it's esay :
    Code (Text):
    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 :
    Code (Text):
    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.
    The_RedFiire likes this.