Friendly Fire gives you the possibilty of enabling/disabling friendly fire based on the inbuild Team system, Friends API or Clans plugin.(Each player has his own friendly fire option)
To listen for when a friend is attacked, use this hook:
Chat Commands
- /ff - Turn friendly fire on or off depending on current state
- /ff on - Turn friendly fire on
- /ff off - Turn friendly fire off
- /ff help - Prints out basic help
Configuration
The settings and options can be configured in the FriendlyFire file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.Default Configuration
- Changing the player default setting will change the default setting of each player.
- Send friendly fire messagesrelate to the following messages:
- NoFriendlyFire
- OtherNoFriendlyFire
- FriendAttack
- The include checks give you the possibility of enabling/disabling certain checks on attack
Localization
The default messages are in the FriendlyFire file under the lang/en directory. To add support for another language, create a new language folder (e.g. de for German) if not already created, copy the default language file to the new folder and then customize the messages.For Developers
To call the functions from this API you'll first need to get the plugin reference:To listen for when a friend is attacked, use this hook: