Filled Pathways

Discussion in 'Archived: Plugin Requests' started by Dashdart, Jun 4, 2014.

  1. Offline

    Dashdart

    Hey just a simple customizable plugin that detects what block (id and data value) the player is walking on, the plugin then tests to see if that block type is in its config and if it is applies a custom potion effect to the player.

    The plugin should allow you to customize the enter and leave messages of the area. For identifying which block it can either be written in words e.g. WHITE_WOOL or WOOL_WHITE or as an id 35 11 for blue wool (notice the space instead of the : for the data tag.

    If players have paathways.bypass.<worldname> they are exempt from being effected by the potions in that particular world.

    Example Config:

    Code:
    Worldname: world_nether
      Message format: [Prefix] @m [Suffix]
      Enabled Blocks:
        WHITE_WOOL
          Effect: Swiftness II
          Enter message: 'WOW this is fast!'
          Exit message: 'Back to Normal again'
        BLUE_WOOL:
          Effect: Slowness
          Enter message: 'This is slow :('
          Exit Message:
     
  2. Offline

    Dashdart

    bumpidy bump
     
  3. Offline

    davewolax

    This was supposed to be included in GriefPrevention plugin and log all data, but they didn't. because in Large servers it will cause a lot of server lagg and probably crash or players will get timed out, unless server has very high Ram , but still wouldn't be useful in large servers.
     
  4. Offline

    Dashdart

  5. Offline

    davewolax

    Dashdart It's possible, but too many checks will take too much RAM and slow down the process
     
  6. Offline

    Dashdart

    davewolax Is this possible with worldguard regions??? where you set a region and it gives you the potion effect in that region??? I did think about using this originally except I am going to have to create 100's of regions haha
     
  7. Offline

    timtower Administrator Administrator Moderator

    Dashdart I think that a runnable without the messages wouldn't cause too many lag if it causes any lag at all.
     
  8. Offline

    FlareLine

    The main thing that will cause lag is applying the potion effects to every player if any is caused at all.
     
  9. Offline

    Dashdart

    timtower FlareLine Why would it be the potions or messages that caused the lag not the constant player checking???
     
  10. Offline

    timtower Administrator Administrator Moderator

    They both are
     
  11. Offline

    Dashdart


    timtower The potions and messages or the constant player checking??? Bit confused.
     
  12. Offline

    timtower Administrator Administrator Moderator

    Everything can cause lag, just depends on the amount of players if you will notice it
     
  13. Offline

    Dashdart

    timtower So relatively it will not be so resource hungry it causes the server to lag?? But the more players that are online the more resources that will be used??
     
  14. Offline

    timtower Administrator Administrator Moderator

    Yep
     
  15. Offline

    FlareLine

    Checking PlayerMoveEvents for around 200 players doesn't cause lag - checking the block and applying the respective potion effect might cause a little lag.
     
  16. Offline

    Dashdart

  17. Offline

    FlareLine

    Not really, no.
     
  18. Offline

    simgar98

    fromgate likes this.
  19. Offline

    Dashdart

    simgar98 This is perfect!!

    When you step off the block is the potion effect instantly removed or does the seconds have to count down???
    When you are on the block does the potion keep getting re-applied???
    Is it possible to only use plugin in certain worlds???
     
  20. Offline

    Deleted user

  21. Offline

    Dashdart

    zombiekiller753 Thanks
    simgar98 Hmmm cant seem to get it working I copy the name of the potion as it is given in the instructions NAUSIA and it says its an invalid potion...also could you possibly add swiftness and slowness?? :)
     
  22. Offline

    simgar98

    It is not instantly removed, however, if you would set the time to 1 or anything lower than 20, it would constantly get repeated after it gets worn off really quickly...

    And I see, I have missed the nausia somewhere... all the other listed ones should work... I'll update it in a sec, + swiftness & slowness.
    For now you could put the nausia in the config, just look at the format, should be pretty easy ;)


    EEEEEEEEEEDIT:
    https://www.dropbox.com/s/qjh7xgvzsz3ncu5/BlockEffectV0.2.jar
    Direct download, or just download it from the page (I believe it takes a while for it to get approved and such?)
     
  23. Offline

    Dashdart

    simgar98 thank you :) at some point are you going to add every potion effect??? :)
     
  24. Offline

    simgar98

    I dont see the point in some potion effects, and I am just really lazy :3 I might, someday... somewhere...
    It is just a bunch of copy pasting and editing the names and potion effects.... BORING!
     
  25. Offline

    Deleted user

  26. Offline

    simgar98

  27. Offline

    Dashdart

    zombiekiller753 simgar98 :)

    [EDIT]

    simgar98 The potion effect for swiftness I think when the plugin re-applies it makes your screen go all gltichy (like the sprint glitch when your screen keeps zooming in and out) also the damage value dosent seem to work either because I want it to work on 159:8 but works on all the other 159's aswell :/
     
  28. Offline

    simgar98

    http://dev.bukkit.org/bukkit-plugins/blockeffect/files/5-block-effect-v0-3/
    You sure can find all the bugs/glitches/non-implemented methods :p
    This is not yet with the PotionEffectType.getByName(string), MIGHT add that later... MIGHT just keep it like it is :3 yay 4 lazyness

    And I see your problem with the glitchyness... But well...... :3
     
  29. Offline

    Dashdart

    simgar98 Do you know what the problem is with the glitchiness and or how to fix it?? :D hehe yeah its been undergoing major testing :p

    [Edit]

    A possible solution to the glitchiness problem (just thought about it now) how about you make the plugin so when the player stands on the block it gives them the potion for 9999999999999 seconds (basically infinite) and then when the plugin detects that the player isnt on that block type anymore it removes the potion which means that the plugin dosent need to keep re-applying it :)
     
  30. Offline

    simgar98

    I might someday perheaps maybe make that... the issue of the glitchyness is just the rapidly changing FOV...
     

Share This Page