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.
@hetjoshi
There is nothing in that error to show me where it is getting caused or even if it is my plugin. Looks to me like there is an error in the Spigot code. I see no references to my plugin.
I am getting a ton of errors please help, 05.05 16:58:52 [Server] INFO Caused by: java.lang.NullPointerException 05.05 16:58:52 [Server] INFO at java.lang.Thread.run(Unknown Source) [?:1.7.0_72] 05.05 16:58:52 [Server] INFO at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:606) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:703) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:372) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at net.minecraft.server.v1_8_R2.MinecraftServer.A(MinecraftServer.java:762) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at net.minecraft.server.v1_8_R2.SystemUtils.a(SourceFile:60) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_72] 05.05 16:58:52 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_72] 05.05 16:58:52 [Server] INFO at net.minecraft.server.v1_8_R2.PlayerConnectionUtils$1.run(SourceFile:13) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at net.minecraft.server.v1_8_R2.PacketPlayInChat.a(PacketPlayInChat.java:1) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at net.minecraft.server.v1_8_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at net.minecraft.server.v1_8_R2.PlayerConnection.a(PlayerConnection.java:969) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at net.minecraft.server.v1_8_R2.PlayerConnection.handleCommand(PlayerConnection.java:1134) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at org.bukkit.craftbukkit.v1_8_R2.CraftServer.dispatchCommand(CraftServer.java:646) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [Spigot.jar:git-PaperSpigot-83fc0d2-ab309d7] 05.05 16:58:52 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 't' in plugin McTeams v1.5.1 05.05 16:58:52 [Server] ERROR null
Hoping to see lot's of cool stuff in the next update! I was also thinking about permission nodes instead of letting all players have the permission. Some servers like to have only specific players to be able to create teams to avoid too many one-man teams. Another suggestion is for teams to auto-disband at a given time which you can set.
@xSnowBlitzz718
Nice Idea. I never thought of that.
Nvm my previous question. It works fine after restarting the server instead of just the plugin itself. There's a small problem though, http://i.imgur.com/9l5hVxi.png The team name can be as many characters you can type on the chat. You might want to limit it to around 10 or have a config option for the us to choose how long. ^-^
I have set team-prefix-enabled - to true and yet there's no prefix showing. Are there further steps to do this or is it just simply bugged?
Oops... it still does it! But it is not triggered by team chat. It started 6 seconds after someone issued /team hq. But I can't reproduce it. I tried for over an hour. It just started to spam the console and it never stopped, until restart.
Here's a 10 seconds sample.
EDIT: I'm even more clueless now, it's been almost 3 days without a single error! :D
@nate22233
Seems to be running smoothly, thank you! :)
@EarlyReflex
Thank you. This has been fixed in v1.5.1. If you are still experiencing any errors please let me know.
@EarlyReflex
Thank you. This has been fixed in v1.5.1. If you are still experiencing any errors please let me know.
@hetjoshi
I agree. I updated to 1.5 and everything seems to run smoothly. I wonder what was triggering the console spamming though. I'll investigate further if it happens again.
EDIT: After someone goes into /team chat, errors come out, for each message sent while in team chat. That could be one of the causes of the heavy console spamming:
Pastebin
Nvm the new 5 version is pretty good very less Errors I believe.
Another form of very heavy console spamming is happening now (v1.4.4):
http://pastebin.com/7Ght5FH5
That single error message is spammed 4 times per second, non-stop, until the server is restarted. I have no clue why this is happening since nothing has changed on our server (updating or changing a thing is always a bit scary when everything runs very stable).
I haven't updated to 1.5 yet. I wanted to know if the issue was known and possibly fixed before updating.
Nate please fix your jgo plugin
Thank you for the 1.5 update!
I meant the suggestions in a nice way lol..
v1.4.4 has behaved very well since I installed it. Not a single error for almost 6 days.
But I noticed while investigating a team of 2 potential hackers that once they're in team chat, they're totally under cover. Team chat doesn't output anything in the console or in the logs. That could lead to some security issues and make investigations near impossible.
Do you think there's a way to fix that without breaking anything? Because 1.4.4 works great already! :D
Getting error messages in console running latest version of spigot 1.8.
Click here to see it.
@nate22233
Thanks a ton! :)
The bug doesn't seem to affect gameplay though, I would have heard of it! And in 1.4.3, it doesn't happen as often, in fact it's still pretty rare.
I'll tell you if it still does it in 1.4.4.
@EarlyReflex
Thanks this has been fixed in the newest update (1.4.4) I hope.