No Friendly Fire
No Friendly Fire
This Plugin allows you to create teams based on permissions that you assign to your players, team mates aren't able to damage one another. It can even prevent you from hurting yourself!
Usage
- Check the config and add your own teams
- Create a group in your permissions plugin for every team
- Then add the permission for the team, use "nofriendlyfire.teamname"
- Now you can just add all the users you want to the teams (the groups you created for the teams)
- All the players in the same group won't be able to damage one another
Features
- Can block melee, arrow, snowball, potion damage and damage to yourself. Can also only selectively block what you choose.
- Can display a message to the player attacking his teammate and to the teammate that got attacked
- All the teams can have custom colors to be displayed in the name above a players head requires TagAPI
- This plugin is meant to be rather simplistic, in that regard I decided to require the use of a permissionsplugin instead of writing my own team system.
Commands
- nff reload
- reloads the config
Permissions
- nofriendlyfire.admin
- gives access to /nff reload
- nofriendlyfire.teamname
- every teams permission is made of "nofriendlyfire." and the name of the team from the config. Example: Attackers - nofriendlyfire.attackers
Source Code
I love OpenSource, here you go. https://github.com/Di3mex/NoFriendlyFire
Links
Color Reference
To be able to set the color above a player's head you will download this optional plugin called TagAPI. It allows for inter plugin compatibility and prevents complications before they arise.
Donations
I love donations - make my day :) - the link is in the top right corner.
WTF. How to do this. i tryed. And thats not working. All can attack everyone. I created group and added users. WTF. are this not working on 1.8.9?
@Diemex
Yes that's what I think. I like the idea but its not really usable for me, thx for the fast response.
maybe you can make it a next gen plugin by removing the use of permissions side and implement it into the plugin, and that a player can use the commands to make teams whit the right permissions.
@server075
Your usecase is out of the scope of this plugin. This plugin is meant to be a lightweight and simple way for an admin to setup teams with commands he already knows (permission systems). It is not meant for player managed teams.
For that usecase every group would need a team admin that would be able to modify the team members or handle accepting of players trying to get into the group.
You could try out several other plugins that you can find by searching for "teams" on the search page.
•Create a group in your permissions plugin for every team so I got 9 groups (player, vip1, vip1-mod, vip2, vip2-mod, vip3, vip3-mod, admin, owner) I got lots of people online how would you set it up so each player can have a friend and still pvp to other teams ?
@Diemex
I didn't even noticed the core permissions' API. Thanks for letting me know. It is working great!
@jommeke
What do you mean? Who should bypass what?
@wehehehek
As long as nothing is changed in the core permissinons API and how DamaheEvents are handled this plugin should work.
Will you be porting this plugin of yours to CB 1.5? Thanks!
add bypass perm
@Bombing_Tomato
The plugin works fine, why would we need an update?
Any news on an update?
@datamann10
I sent u a pm, could you please take a look at that?
@datamann10
yea it doesnt work -.-
well off to find another plugin >.>
@Diemex
Yea sry...
But the server pcs motherboard died, so i need to wait for it to be back up.
I was just asking other people to see their experience, but thanks, i will try it as soon as its up. :)
@datamann10
You could have easily checked yourself.... http://wiki.ess3.net/wiki/Group_Manager/Commands. The commands for adding and removing users from groups are right at the top. Try if they work from command blocks.
Commands for GroupManager : Move player from team2 to team1
welll what i need is this:
when a player joins a team, it puts them in team1, or 2 if they chose 2
once they die, it removes it, witha command block that is at spawn
Notes: i only use GroupManager, would that work?
PermissionsBukkit is work with commandblock. So you can change group with commandblock.
@datamann10
Commands? There is only one command: reload which can be executed from a command block. The commands executed in the video are from PermissionsEx, don't know if they work for command blocks.
Are these commands executable by Command Blocks? If so, imma donate
Update 1.0 :)
And of course lots of changes under the hood :), enjoy waiting for it to be approved :D. The best is yet to come!
@Diemex
Sorry i overreacted there, i would just love it if you could release just one little update, so that snowball detection is added, u see i run a server with guns, and they use snowballs to shoot, people have been killing their teammates like crazy and its really sad to see nice players leave because of those trolls.