Spigot PotionJoin 1.2

Gives players configurable time and level potion when they join your server!

  1. Malo submitted a new resource:

    PotionJoin (version 1.0) - Gives players configurable infinite jump height on join

    Read more about this resource...
     
  2. Sweet =o Will check it out soon
     
  3. Malo updated PotionJoin with a new update entry:

    Update 1.1

    Read the rest of this update entry...
     
    #3 Malo, Apr 19, 2013
    Last edited: Apr 19, 2013
  4. I did this with Skript, not infinite though, just a cool join effect
     
  5. Feature request:
    Is it possible to make it multiverse supported somehow? Or let the plugin remove the effect when a player change world?

    I want to use this plugin only in my Hub, and when a player change world the effect need to disappear.

    Now i cant use it for my purpose :p
     
  6. I hardly know java, but ill try.
     
  7. Add this to your code
    Code (Text):
      @EventHandler
      public void onWorldChange(PlayerChangedWorldEvent event){
        event.getPlayer().getActivePotionEffects().clear();
      }
    <3
     
  8. What if they join, and they spawn in a survival world, they will get the potion there, and when they move worlds, it will get removed?

    What Im thinking, is make it so you can set worlds in the config in which you will get the potions in when you enter them, which I don't know how to do lol
     
  9. You would need to do a check before you add the potion effect

    I'm no dev but i think this is how it would work.
    Code (Text):
        if
        player.getWorld().getName() == this.getConfig().getInt("HubWorld");
    And run that check before you apply the potion effect
     
  10. You are getting an interger, which is a number but a string would make more sense.
     
  11. Please update this plugin :(
     
  12. 1.9 Update? :)
     
  13. Please add the potion with Hearts and Haste!
     
  14. add effects on join
     
    • Like Like x 1
    • Optimistic Optimistic x 1