IDragonfire / DragonAntiPvPLeaver

AntiPvPLogger for Minecraft
5 stars 4 forks source link

Spawn npc only when player attacks #20

Open IDragonfire opened 11 years ago

IDragonfire commented 11 years ago

http://dev.bukkit.org/server-mods/dragonantipvpleaver/#c173

Hey Dragonfire,

Awesome plugin here! Though I have a request. Can you add the option to only spawn NPC's if the player has attacked or been attacked by another player in the last 30 seconds? So, for example, in the config:

http://privatepaste.com/06c79b7b41

I realise this is a decent sized feature, but it'd be great if you could add it! Because a lot of our players are being backstabbed by their 'friends' when they realise they're not going to attack back!

Thanks! :D

From http://dev.bukkit.org/profiles/netherfoam/

IDragonfire commented 11 years ago

Maybe I change the config... Npcspawnswhile: underattackcustom, underattackall, payernearby, always

Config for underatrackcustom: underattackcustom.frommonsters: true underattackcustom.players: true

What happen if server has Heroes and player git hurt by a skill ....

And:

Spawn-npc-if-logged-player-deal-damge or maybe yours spawn-if-hit-another-player

IDragonfire commented 11 years ago

Add underattacktimer http://dev.bukkit.org/server-mods/dragonantipvpleaver/#c176

IDragonfire commented 11 years ago

current config version: https://gist.github.com/4579276