how? copy plugin if possible please
[DOUBLEPOST=1446501620][/DOUBLEPOST]please can you tell me how to do this or copy your plugin as i really need help. thanks
Killing Only At Night
Players can only kill each other at night
Total Downloads: 938 - First Release: Jun 1, 2015 - Last Update: Jun 1, 2015
- 5/5, 1 like
-
ok so here is my problem i want to only use the announcer part of the night only KOS mod not the god mode during day. i know people have done this but none of them reply to me, if someone could reply with what i need to change would help alot
-
That should it be, and don't forget to remove the "(6)" and upload it then, otherwise it wont work ^^
Attached Files:
-
-
I also wish for a plugin that will tell people when its night and when its day. still killing allowed on daytime.
I have robbery allowed only at night and people are having trouble on when it is night and when it is day.
[DOUBLEPOST=1453908564][/DOUBLEPOST]or possible to edit this plugin just for the time message?
i mean it still allowed to damage day and night. -
where do i paste this ?
-
-
HAS ANYONE FOUND OUT HOW TO KEEP DAMAGE ON BUT JUST DISPLAY THE NIGHT KOS BUTTON PLEASE HELP
[DOUBLEPOST=1464892463][/DOUBLEPOST]how do i make it day time kos and not night time kos
[DOUBLEPOST=1464893837][/DOUBLEPOST]nvm mind i figured it out if you want only desplay the server wide message and have damge aslo take out this damageEvent.Damage.Amount = 0f; delete from script -
never mind that didnt work its nice people are on to help others here
-
Someone could do that KOS it was only possible during the day?
-
Does someone now how I can enable damage during day so that only the messages (it is night, it is day) appear and so I can use the command /checknight?
-
How do i make so at day noeone can kill but within the king zone its allowed
-
If you want to use this plugin only to show day and night and enable damage on daytime remove this part of the plugin.
}
private void OnEntityHealthChange(EntityDamageEvent damageEvent)
{
GameClock.TimeBlock TimeBlock = GameClock.Instance.CurrentTimeBlock;
if (
damageEvent.Damage.Amount > 0 // taking damage
&& damageEvent.Entity.IsPlayer // entity taking damage is player
&& damageEvent.Damage.DamageSource.IsPlayer // entity delivering damage is a player
&& damageEvent.Entity != damageEvent.Damage.DamageSource // entity taking damage is not taking damage from self
&& !IsNight() // Not night time
)
{
damageEvent.Cancel("Can Only Kill At Night");
damageEvent.Damage.Amount = 0f;
PrintToChat(damageEvent.Damage.DamageSource.Owner, "[FF0000]You can only attack other players at night.[FFFFFF]");
} -