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:
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.
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
Dashdart I think that a runnable without the messages wouldn't cause too many lag if it causes any lag at all.
The main thing that will cause lag is applying the potion effects to every player if any is caused at all.
timtower FlareLine Why would it be the potions or messages that caused the lag not the constant player checking???
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??
Checking PlayerMoveEvents for around 200 players doesn't cause lag - checking the block and applying the respective potion effect might cause a little lag.
http://dev.bukkit.org/bukkit-plugins/blockeffect/ This might help? made it a while ago Not exactly what you want, but maybe it is sufficient for you?
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???
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??
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?)
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!
Dashdart simgar98 http://jd.bukkit.org/rb/apidocs/org/bukkit/potion/PotionEffectType.html PotionEffectType type = PotionEffectType.getByName(configString)
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 :/
http://dev.bukkit.org/bukkit-plugins/blockeffect/files/5-block-effect-v0-3/ You sure can find all the bugs/glitches/non-implemented methods 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
simgar98 Do you know what the problem is with the glitchiness and or how to fix it?? hehe yeah its been undergoing major testing [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
I might someday perheaps maybe make that... the issue of the glitchyness is just the rapidly changing FOV...