McTeams
McTeams
Welcome to McTeams! This plugin is purely based off of the McPvP/McTeams team plugin! This plugin is great for a team server, or if you just want to have fun with your friends.
Commands
/Team - See the team command help page
/Team create [teamName] [password] - Create a team. The password is optional.
/Team join [teamName] [password] - Join a team. A password may not be required.
/Team leave - Leave your current team.
/Team info - Get details about your team.
/Team info [playerName] - Get details about a player's team.
/Team msg [message] - Message players on your team.
/Team chat - Toggle team chat only mode on or off.
/Team hq - Teleport to your team headquarters.
/Team rally - Teleport to your team rally point.
/Team pass [password] - Set the team password.
/Team kick [player] - Kick a player from the team.
/Team promote [player] - Promote another player to manager status.
/Team demote [player] - Demote a player to normal status.
/Team sethq - Set the team headquarters warp location.
/Team setrally - Set the team rally point warp location.
/Team ff - Toggle team friendly fire.
/Team disband - If you are the only manager then you will be able to disband the team.
Admin Commands
/McTeams fixplayers - USE THIS COMMAND IF YOU ARE UPGRADING FROM 1.3 TO A HIGHER VERSION!
/McTeams chatspy - Toggle being able to spy on team chats.
/McTeams forceleave - Force a player out of their team.
/McTeams forcejoin - Join any team without the password.
Permissions
McTeams.fixplayers - Permission to do /McTeams fixplayers.
McTeams.chatspy - Permission to do /McTeams chatspy.
McTeams.forceleave - Permission to do /McTeams forceleave.
McTeams.forcejoin - Permission to do /McTeams forcejoin.
"permissions-required" permissions:
Teams.create - Permission to create a team (/team create).
Teams.leave - Permission to leave a team (/team leave).
Teams.join - Permission to join a team (/team join).
Teams.disband - Permission to disband a team (/team disband).
Teams.info - Permission to get info on a team (/team info or /team info <player>).
Config
team-prefix-enabled - Enable team prefixes.
team-prefix - If enabled changes the team prefix.
player-max - Change the amount of players able to join a team. "-1" is unlimited.
primary-color - Change the primary color of the messages.
secondary-color - Change the secondary color of the messages.
manager-color - Change the color that a team manager's name will be.
permissions-required - If enabled require the permissions above to run their respective commands.
If the strings are not added to the config.yml by default you will need to add them yourself.
Reviews
By: CraftingBenchMC
PlaceholderAPI
With McTeams v1.6 comes the ability to use placeholders with PlaceholderAPI.
- %mcteams_name% - Team name of a player.
- %mcteams_role% - Role of a player within their team.
- %mcteams_online% - Number of online players in a player's team.
- %mcteams_membercount% - Number of total players in a player's team.
- %mcteams_ff% - Return "true" or "false" depending on whether the player's team has friendly fire enabled.
Any of the previous placeholders can be followed with "_<player name>" to get the corresponding results for any online player. For example, if you wanted to get the role of "nategs" you would use the placeholder %mcteams_role_nategs%. With names being case sensitive.
More
Want the McPvP/McTeams warp plugin? Go Here
If you have any suggestions/improvements/bug fixes remember to comment them so they can be implemented.
@TheFireballBoss
I don't know what you mean by any of this. Also, a "Please" would be nice. Just because developers upload plugins doesn't mean we are your slaves.
Support for creative servers, team ChestShop upgrades ( maybe just support for chest commands GUI for this), and support for KitPvP servers.
Finally, the error "Could not pass event EntityDamageByEntityEvent to McTeams" is still there, throwing tons over tons of exceptions in the console.
Click here for a sample. This time though, the player was alone on the server, fighting mobs. This player is not in a team.
@nate22233
That was quick! Thank you! :D
What does the fixplayers command do exactly? Do I have to only run it once to fix the whole teams.yml file?
@EarlyReflex
@Kaptainz12
Thank you both for feedback. I have fixed both bugs you have both stated in the newest version (v 1.4.3).
In v1.3, we keep having this error:
[13:18:58 ERROR]: Could not pass event EntityDamageByEntityEvent to McTeams v1.0
(It says v1.0, but it's actually v1.3)
This spams the console with around 30 lines of error stuff for every single hit from a player to another. This can grow to several megabytes during pvp fights, it clogs the console, and eventually brings down the t.p.s.
Before I install the update, has this bug been fixed in v1.4?
Edit: I've done some testing and that seems to be fixed. But still, the plugin (v1.4.2) is totally unuseable because after relogging, a player is not in a team anymore.
Hello,
Im having another problem
when I create a team & log off the server and then log on back, the team gets deleted.
I can hit my team mate with an arrow.
@Jomacy09
I will look into allies and enemies. You can enable prefixes in the config.
are you able to add a command to list all the teams, a prefix in chat showing what team someone is on, and allies and enemies?
Oh god, sorry but I just found a new bug!
I can hit my team mate with an arrow!
Thanks, it works PERFECTLY, but need the teleportation delay suggestion ASAP.
@Kaptainz12
Thanks. Fixed those bugs in version 1.4.2.
@Kaptainz12
This is just a little announcement.
IF YOU ARE UPGRADING TO A VERSION HIGHER THAN 1.3 FROM 1.3 OR BELOW THEN DO THE COMMAND "/McTeams FixPlayers" TO FIX THE PLUGIN!
Hello,
I've noticed some problems,
1- Team prefix doesn't show up anymore.
2- Some commands doesn't work like:
* /t rally
* /t disband
* /t hq
Note: I've installed the new version, I never had the older versions on my new server. I also deleted the teams.yml but still gives an error when I type one of those commands. "An internal error occurred while attempting to perform this command"
Suggestions:
1- Teleportation delay to stop logging {Like essentials delay, when you get hit the teleportation gets canceled!}, if not, then permissions at least :D!
2- Spy command to spy on the private chats, {ex: /t spy}
3- Permissions again!
Thanks!
Thanks for adding what I suggested, really appreciated! :D
@buddhist09
The newest update changed how players are stored in the config so either leave and rejoin/recreate your team, or you could delete the teams.yml.
Getting an internal error when I try /t disband & /t chat
Im getting this message all the time...
[11:47:10] [Server thread/ERROR]: Could not pass event EntityDamageByEntityEvent to McTeams v1.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) [minecraft_server.jar:git-Spigot-b73910a-726656b] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [minecraft_server.jar:git-Spigot-b73910a-726656b] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [minecraft_server.jar:git-Spigot-b73910a-726656b] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [minecraft_server.jar:git-Spigot-b73910a-726656b] at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:85) [minecraft_server.jar:git-Spigot-b73910a-726656b] at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:538) [minecraft_server.jar:git-Spigot-b73910a-726656b] at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:451) [minecraft_server.jar:git-Spigot-b73910a-726656b] at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:570) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.EntityLiving.d(EntityLiving.java:1096) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.EntityHuman.d(EntityHuman.java:860) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.EntityLiving.damageEntity(EntityLiving.java:737) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.EntityHuman.damageEntity(EntityHuman.java:801) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.EntityPlayer.damageEntity(EntityPlayer.java:486) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.EntityHuman.attack(EntityHuman.java:1002) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.EntityPlayer.attack(EntityPlayer.java:1051) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:1312) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.PacketPlayInUseEntity.a(SourceFile:52) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.PacketPlayInUseEntity.a(SourceFile:11) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [minecraft_server.jar:git-Spigot-b73910a-726656b] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_71] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_71] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [minecraft_server.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [minecraft_server.jar:git-Spigot-b73910a-726656b] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_71] Caused by: java.lang.NullPointerException at me.nate22233.mcteams.FriendlyFireListener.onPlayerHit(FriendlyFireListener.java:20) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_71] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [?:1.7.0_71] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_71] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_71] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) [minecraft_server.jar:git-Spigot-b73910a-726656b] ... 25 more
Hello,
I have a suggestion, can you please add a limit to the players in a team, so in the config I can set a limit or none for unlimited people joining a team. so if I set the limit in the config to 10, 10 players will be able to join a team. I wish you got the point. And I wish you'll add it. sorry for my bad english :P.
oh yeah! And the /disband suggestion, its already suggested by EearlyReflex
one more thing, can you add a delay for going to the teams home or rally, or at least add a permission node for it. so I can deny it.
Thanks!
After testing it a bit it seems to work pretty good on Spigot 1.8. Haven't found any major issues. Some more commands would be nice though, like /reload, /list, /delete or /disband. Currently, there's no in-game method to delete a team.
Maybe an auto-disband feature when last manager leaves the team or some other way to prevent last manager to leave, making the team headless and unmanageable.
I like the password system instead of the traditional invite system! It's less intuitive at first though, players aren't used to that, but it's no big deal, mods are there to help.
Good work!