TeamCommands

With this plugins you can use any command you can use on one person on a whole team at once.

Usage

This plugin simply allows you to use team names in the place of a username in any command, and then applies that command to all users on that team. By default, team names must be prefixed with a "%" symbol in order to distinguish them from names, but the prefix and suffix for team names can be configured easily in the config file.

Examples

  • /tp %red 1 1 1 - Teleport all players on the team "red" to the coordinates 1, 1, 1
  • /tell %red hi - Send a message to all players on the red team

In almost all cases this plugin will "just work" with any existing command; however, there are some caveats.

  • If you use more than one team name in a single command, it may not work how you expect. Only the first team name found in a command will be replaced with the relevant usernames, and any subsequent instances of that team name will also simply be replaced (and not iterated through a second time). This was a design decision I made due to the potentially huge number of actions that could occur when multiple teams are used. For example, just 3 teams of 10 people would translate to 10^3=1000 commands.
  • At the moment, this plugin cannot work with command blocks. This is because Bukkit provides no event for command block command preprocessing.

Commands

This plugin doesn't have any commands of its own. Once installed, it should work with any other existing command.

Permissions

  • teamcommands.use - Allows players to use team names in place of usernames in commands. If players do not have this permission, their commands will not be modified at all.

Donation

You can donate via PayPal using the "Donate" button in the upper right hand corner, or you can send bitcoins to my address: 1J2GgkEBgg7kVFN5G612Uxj1dDSqX1PWsv


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    74911
  • Created
    Feb 21, 2014
  • Last Released File
    Feb 21, 2014
  • Total Downloads
    1,539
  • License

Categories

Members