BlindNight
Dowload the latest version here:
http://dev.bukkit.org/bukkit-plugins/blindnight/files/5-blind-night_v-2/
Brief Explanation:
At night time you get blindness. And in day time it goes away. If you drink milk the blindness doesent go away. When you get in a 5 block radius of a torch your blindness gets taken away. The potion effect, radius and the block can be edited from the config. Those were the default ones.
Commands:
/SetNightTime [number from 0 to 24000]:
Sets when it starts to give the potion to players(when it becomes night for the plugin)
/SetRadius [number]
Sets if the player is how many blocks away from the specified block the potion effect gets removed.
/SetPotionLevel [number]:
Sets the potion level(the amplifier).
/SetLag [number from 1-3]:
See the config part for this.
/SetItem [blockname]:
Set's the block that removes the potion effect when the player is near.
/SetPotionEffect [potion effect]:
Set's the potion effect given to the player.
Permissions:
Op's get all the permissions.
BlindNight.noPotion:
description: You don't get blindness at night
BlindNight.SetNightTime:
description: Permission for /SetNightTime
BlindNight.SetRadius:
description: Permission for /SetRadius
BlindNight.SetPotionLevel:
description: Permission for /SetPotionLevel
BlindNight.SetLag:
description: Permission for /SetLag
BlindNight.SetItem:
description: Permission for /SetItem
BlindNight.SetPotionEffect:
description: Permission for /SetPotionEffect
Installing:
Put this plugin on your plugins folder. If the server is running type /reload or restart the server. If it isn't running then start it up.
Config:
There is a config file that allows you to edit many stuff about the plugin. The default config looks like this:
item: TORCH
radius: 5
potioneffect: BLINDNESS
level: 3
nighttime: 12500
lag: 1
The item: is when the player get's next to which block the potion effect gets removed.
The nighttime: is at which time the player starts getting the potion effect. Do it 0 and it will be always. When it is 12500 it's the exact time when it turns night.
The lag is in how many ticks(a period of time) does it control if you are near the block and removes your potion effect. The default is 1 but if it starts to lag your server a bit then you can turn it to 2,3 but I don't recommend more then 3 because even when you are near the block and not moving you get the potion effect and it get's removed allot.
The level is the amplifier. When you do it 2 you get 2 blindness for example.
Radius is how near your near the item/block.
The Potion Effect is which potion effect the player get's when it's night time.
If you have any more ideas about what i should add to the config tell me in the comments!
Any news on a potential update? Would be awesome to have for 1.12.2
This sounds cool, but I'm not getting blindness. The commands and config works.
@no_phone
The last plugin file wasn't approved yet so when you click download it opens a older download. To dowload the latest version go to http://dev.bukkit.org/bukkit-plugins/blindnight/files/4-blind-night_v1-5/.
In 10 minutes I will upload a new file which will be at: http://dev.bukkit.org/bukkit-plugins/blindnight/files/5-blind-night_v-2/
@BtuMc
When you walk to a torch, it would be better when the blindness disappers smoother.
Is it supposed to be BlindNight:noPotion or BlindNight.noPotion
Either way the permission isn't working for me for some reason. Also no config file was generated.
@Nikolas_xD
Thanks but can I ask something?
Which parts are buggy? I'l try to fix them if possible.
Great plugin ;) A little bit buggy right now but its the first version