Gives you the ability to enable or disable friendly fire player based
Supported Games

used by
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)
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
Default Configuration
{
"Command": "ff",
"Player Default Settings": {
"Friendly Fire": false
},
"Change friendly fire state permission": "friendlyfire.changestate",
"Send friendly fire messages": true,
"Include check if friend": true,
"Include check if team member": true,
"Include check if clan member": true
}
- Changing the player default setting will change the default setting of each player.
- Send friendly fire messages relate to the following messages:
- NoFriendlyFire
- OtherNoFriendlyFire
- FriendAttack
- The include checks give you the possibility of enabling/disabling certain checks on attack
Localization
{
"NoFriendlyFire": "You cannot damage your friends! (<color=#7FFF00>/ff on</color>)",
"OtherNoFriendlyFire": "{0} has friendly fire disabled!",
"FriendAttack": "Your friend {0} tried to attack you!",
"FFOn": "Friendly Fire turned <color=#7FFF00>on</color>!",
"FFOff": "Friendly Fire turned <color=#FF0000>off</color>!",
"AlreadyStateOn": "Friendly Fire is already turned <color=#7FFF00>on</color>!",
"AlreadyStateOff": "Friendly Fire is already turned <color=#FF0000>off</color>!",
"FFHelp": "Friendly Fire:\n/ff on - to turn on friendly fire\n/ff off - to turn off friendly fire",
"CommandArguments": "You have to use <color=#7FFF00>on</color> or <color=#FF0000>off</color> as arguments!",
"NoPermission": "You don't have access to use this command"
}
For Developers
To call the functions from this API you'll first need to get the plugin reference:
[PluginReference]
private Plugin FriendlyFire;
To listen for when a friend is attacked, use this hook:
private void OnFriendAttacked(IPlayer attacker, IPlayer victim, HitInfo info)
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.