Team-HomeGUI Plugin

插件

· 作者 Duong2012G

一个轻量级的团队系统,包含团队家园、私人团队聊天、个人家园以及简洁的家园图形界面

0 本站下载 0 关注 更新于 57 分钟前

最新 1.4.2 · 1.21.11 · Bukkit / Paper

一键开服(送7天)

Team-HomeGUI-Plugin

🌐 English

Version: 1.4.2 | API: Paper 1.21 – 26.3 (Java 25) | Author: Duong2012G

A team system with menus for Paper servers: teams with roles, a team menu (/team menu) for everything a team can do, team chat, a team home, up to 5 personal homes in a home menu, cooldowns and warmups, optional Vault charges, PlaceholderAPI placeholders and an EssentialsX override for /home.


Features

Category Feature
Team menu /team menu opens one menu for the team: info, members (promote / demote / kick / transfer), invite from a list of online players, team chat switch, team home (teleport / set / delete), rename, colour picker, invite rule, leave or disband. Actions that cannot be undone (delete the team home, leave, disband, kick, transfer) ask for a confirmation first.
Teams Create, invite (accept / deny), leave, kick, disband, rename, colour, list, info
Roles Owner / Admin / Member. Owners and admins invite, kick members, set the team home and change settings; only the owner can kick or demote an admin, transfer ownership or disband. Offline members can be kicked, promoted, demoted and given ownership.
Team chat /team chat enable|disable (all your messages go to the team) and /team msg <text>; an optional [team] prefix in global chat. Chat text is never colour-translated.
Team home /team sethome, /team delhome (owner / admin) and /team home, or the buttons in the team menu and the banner in the home menu
Personal homes The menu shows 5; with /sethome <name> a player can also keep homes by name, but the total never goes above their limit: default-max-homes, raised by a teamplugin.homes.<n> permission, and never above the ceiling max-homes-limit (5 by default)
Home menu /home / /sethome: bed icons to teleport, lime / red dye to set / delete, a confirmation menu before deleting; all inventories are locked against clicks and drags
Safe data Positions are stored with the world's key and name and resolved only when you teleport, so a home is never lost because its world is not loaded. Files are written atomically on a background thread.
Cooldown & warmup Cooldown per player; a warmup with an action-bar countdown. During the warmup the player cannot walk but can still look around (optional); it is cancelled by a change of block, a teleport or death. A cancelled warmup costs nothing.
Economy Vault charges for setting a home, teleporting, creating a team and setting the team home (all off by default)
Friendly fire Blocks damage between team members from every source: melee, arrows, tridents, potions, TNT. You can still hurt yourself.
PlaceholderAPI %team_*% placeholders
EssentialsX /home, /sethome and /delhome (also as /essentials:home ...) always reach this plugin
Admin tools /team admin ... for people with teamplugin.admin, with an admin ban list

Requirements

Dependency Required
Paper 26.3 (compiled against the 26.3 API; api-version: 26.1, so 26.1 / 26.2 may load it, only 26.3 was targeted) ✅
Java 25 ✅
Vault + an economy plugin Optional (charges)
PlaceholderAPI Optional
EssentialsX Optional (the /home override)

Servers on 1.21.x must stay on 1.3.3. Paper API only (no Spigot); Folia is not declared supported.

Installation

  1. Put teamhomegui-1.4.2.jar into plugins/.
  2. Start the server; plugins/Team-HomeGUI-Plugin/team-config.yml and home-config.yml are created.
  3. Edit them and apply with /team reload (no restart needed; the admin team name needs a restart).

Upgrading from 1.3.x: see Data and upgrading below.


Commands

Players

Command Description
/team create <name> Create a team (3–16 letters, digits, underscores)
/team invite <player> Invite a player (owner, admins, and members if allowed)
/team invite accept / deny Answer the invite you received (expires after 60 s)
/team leave Leave; the owner must repeat it within 30 s to disband the team
/team kick <player> Kick a member (owner or admin; only the owner can kick an admin)
/team info [team], /team members [team], /team list [page] Look at teams
/team sethome Set the team home to where you stand (owner / admin)
/team delhome Delete the team home (owner / admin)
/team home Teleport to the team home
/team menu Open the team menu (see Menus)
/team chat enable|disable Send everything to team chat, or stop
/team msg <message> One team message
/team color <color> Change the team colour (owner)
/team rename <name> Rename the team (owner / admin); same as /team settings name <name>
/team settings name <name> Rename the team
/team settings color <color> Change the colour
/team settings members-can-invite <on|off> Let members invite
/team settings promote <player> / demote <player> Make / remove an admin (demote: owner only)
/team settings transfer <player> Give the team to another member (owner)
/home · /sethome Open the home menu
/home <name> · /sethome <name> · /delhome <name> Teleport to / set / delete a home by name

Alias: /t for /team.

Server admins (teamplugin.admin)

Command Description
/team admin create Create the admin team (name: admin.team-name, default Admin)
/team admin add <player> Move a player into the admin team (not possible while they own another team)
/team admin ban <player> / unban <player> Ban from / allow the admin commands (operators cannot be banned)
/team admin manage <team> Show a team's details
/team admin remove <team> Disband a team (not the admin team)
/team admin list [page] List all teams
/team admin homes <player> A player's homes, their limit and where it comes from (default, permissions, ceiling)
/team admin delhome <player> <home> Delete one of a player's homes (online or cached players)
/team admin settings <team> <option> [value] Change any team's name, colour, invite rule or roles
/team reload or /team admin reload Reload both config files (the console can use /team reload)

Permissions

Permission Description Default
teamplugin.admin /team admin ... and /team reload op
teamplugin.homes.<n> Allows <n> personal homes (the highest wins, but never above max-homes-limit; teamplugin.homes.3/4/5 are declared) false
teamplugin.home.nocooldown Skip the home teleport cooldown op
teamplugin.team.nocooldown Skip the team home cooldown op
teamplugin.player Declared for compatibility; the commands do not require it true

All other commands are available to everybody.


Menus

Team menu (/team menu)

For a player in a team (5 rows):

Row 1: [ ][ ][ ][ ][i][ ][ ][ ][ ]    i = team info
Row 2: [ ][M][I][ ][C][ ][H][ ][ ]    M = members · I = invite · C = team chat on/off · H = personal homes
Row 3: [ ][ ][T][S][D][ ][R][P][B]    T = teleport to team home · S = set · D = delete · R = rename · P = colour · B = members can invite
Row 4: [ ][ ][ ][ ][ ][ ][ ][ ][ ]
Row 5: [ ][ ][ ][ ][L][ ][ ][ ][X]    L = leave (members) / disband (owner) · X = close
Button What it does Who
Members Heads of all members with their role and online status. Click a member to promote, demote, kick or transfer ownership to them. Everybody sees the list; owner / admins manage (only the owner demotes, transfers, or kicks an admin)
Invite Online players who are not in a team; click a head to invite Owner, admins, and members when "members can invite" is on
Team chat Turns team chat on or off for you Everybody
Team home Teleport, set (where you stand) and delete (after a confirmation) Teleport: everybody; set / delete: owner and admins
Rename Closes the menu; type the new name in chat (cancel aborts) Owner and admins
Colour A picker with the 16 colours Owner and admins
Members can invite Switches the rule Owner and admins
Leave / Disband After a confirmation Members leave; the owner disbands

For a player without a team (3 rows): create a team (type the name in chat), browse the team list, open the personal homes, and answer a pending invitation (left-click to join, right-click to decline).

Every button runs the same code as the matching command and checks your role again when you click, so an old menu can never do something you are no longer allowed to do. All labels can be changed in the gui: section of team-config.yml.

Home menu (/home, /sethome)

Row 1: [ ][ ][ ][ ][T][ ][ ][ ][ ]    T = Team home (banner)
Row 2: [ ][ ][1][2][3][4][5][ ][ ]    personal homes (bed icons)
Row 3: [ ][ ][S][S][S][S][S][ ][ ]    S = set (lime dye) / delete (red dye) for the home above
Row 4: filler
Row 5: filler

(The exact slots are 4, 11–15 and 20–24; the menu has 5 rows by default, gui.rows accepts 3–6.) The delete confirmation has a red No, the bed, and a green Yes in the middle row of a 3-row menu.


Configuration

Both files are plain YAML; keys that are missing fall back to the defaults bundled in the jar.

home-config.yml

Key Default Description
default-max-homes 5 Homes everybody may have (raised by teamplugin.homes.<n>)
max-homes-limit 5 The ceiling for every player, whatever default-max-homes or a permission says (0 = no ceiling). Raise it only if players should keep more than 5 homes; the menu then still shows the first 5 and the rest are used by name.
gui.title, gui.rows, gui.filler-material, gui.show-coordinates &0Home &8- &0Menu, 5, GRAY_STAINED_GLASS_PANE, false Look of the menu
teleport.cooldown 3 Seconds between teleports (starts when you teleport)
teleport.warmup 5 Countdown in seconds (0 = instant)
teleport.freeze-on-warmup true The player cannot walk during the warmup but can still look around
teleport.freeze-method attribute attribute: a temporary speed / jump modifier that is never saved (smooth, but the view may zoom in slightly while frozen). position: the position is put back (no zoom, the player shakes a little when holding a movement key).
teleport.cancel-on-move true Cancel when the player changes block (knockback, falling, ...). Turning the camera never cancels.
features.personal-homes, features.team-homes, features.sounds true Switch a feature off
disabled-worlds world_nether, world_the_end Worlds (name or key) where homes cannot be set or used. What is written in your file is what applies: delete the entries (or write disabled-worlds: []) to allow homes in the Nether and the End.
economy.enabled, economy.sethome-cost, economy.teleport-cost false, 100, 0 Vault charges
messages.* All home messages

team-config.yml

Key Default Description
admin.team-name Admin Name of the admin team
settings.min-team-name-length / max-team-name-length 3 / 16 Name length
settings.max-members 20 Members per team
settings.invite-timeout-seconds 60 How long an invite lasts
settings.prompt-timeout-seconds 30 How long the menu waits for a name typed in chat (new team / rename)
settings.chat-format, settings.global-format see file Chat layouts ({team} {player} {message})
features.team-chat, features.global-chat-prefix, features.team-homes true Switch a feature off
features.friendly-fire false true allows friendly fire
damage.disable-pvp-between-members true Friendly fire is blocked when this is true and features.friendly-fire is false
creation.default-invite-only, creation.default-members-can-invite true, false Settings of new teams
teleport.cooldown 3 Team home cooldown
economy.enabled, economy.create-cost, economy.sethome-cost false, 500, 100 Vault charges (a team home teleport uses home-config.yml's teleport-cost)
disabled-worlds [] Extra worlds where the team home is unavailable
messages.* All team messages (& colours, &#rrggbb hex colours, {placeholders})
gui.* Every text of the team menu (titles, item names, descriptions)

If charging is enabled but no Vault economy exists, nobody is charged and a warning is logged once.


PlaceholderAPI

Placeholder Returns
%team_name%, %team_colored_name%, %team_color% Team name, coloured name, colour code
%team_role% Owner / Admin / Member
%team_count%, %team_owner% Member count, owner name
%team_has_team%, %team_is_owner%, %team_is_admin% yes / no
%team_has_home%, %team_home_world%, %team_home_x% / _y / _z Team home information (the world is given by name, even if not loaded)
%team_homes_count%, %team_homes_max%, %team_homes_list%, %team_has_homes% Personal homes

Data and upgrading

  • Data lives in homes.yml and teams.yml. From 1.4.0 positions are stored as world-key, world, x, y, z, yaw, pitch.
  • From 1.3.x: on first start the old files are converted. The original file is first copied to homes.yml.legacy-backup / teams.yml.legacy-backup. Positions in worlds that are not loaded at that moment stay in the backup and are imported automatically as soon as the world loads; then the backup is renamed *.legacy-imported-<time>.
  • Files converted by 1.4.0 cannot be read by 1.3.3 or older. Keep the backups if you might go back.
  • A data file that cannot be parsed is copied to *.corrupted-<time> instead of being loaded as empty.

Known limitations

  • One warmup per player: a second teleport request during a warmup is refused.
  • Folia is not supported (the plugin uses the regular Bukkit scheduler).
  • Vault and PlaceholderAPI are optional integrations that were built against their public APIs; test them on your server version.
  • /reload is not supported by Paper plugins in general; use /team reload for the configs.

Changelog

See CHANGELOG.md.

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源