$ man tshabbic.projects.rct-ps
RCT-PS(8)Server Side Party SystemRCT-PS(8)
Name

rct-ps -- server side party system

Description

[See the Source Code!]

Originally for use on the RenCorner Terraria server, this party system implements an extensive suite of commands for players to manage parties. This plugin is largely used as a foundation for other plugins (i.e., grouping players for raids, pvp, et cetera.). See the Usage section below for a comprehensive overview of what this party system offers at a user level.

Parties can be locked for events, and as such, members cannot join, leave, rename, resize, kick, ban, change leader, or disband until they are unlocked.

Using /logout removes you from your party. Disconnecting keeps you in it as an offline member, and a party with nobody online is removed after about five minutes. If the leader has been away for five minutes, leadership passes to an online member.


The following is an example of how the party system can be used in-game:

Usage
/party <option>. Options: create, join, leave, list, chat, tp, leader, home, invite, kick, ban, privacy, rename, resize, color, disband, help

Permission required: msc.party.create to create a party, msc.party.staff to force-disband one. Everything else is available to any logged-in player.

Lets players form parties with private chat, teleporting to each other, and a shared home.

Sub-commands:

/party create <name> [size] [privacy]

Creates a party. Names are alphanumeric and up to 20 characters. Size is 2 to 8 and defaults to 4. Privacy is public/pub/o or private/pri/p and defaults to private. Public parties are announced to the whole server.

/party join <name>

Joins a public party, or a private one if you have been invited. You cannot join if you are banned, the party is full, or it is locked for an event.

/party leave

Leaves your party. If you are the leader, leadership passes to another member. If you are the last member, the party is removed.

/party list [page]

Lists every party with its privacy, size, and members, 9 per page. Online members are green, offline members are red, and the leader is marked with a crown.

/party chat <message>

Sends a message to your party only.

/party tp <player>

Teleports you to another member of your party.

/party leader [player]

Without an argument, shows who the party leader is. If you are the leader, transfers leadership to the specified party member.

/party home <set | tp>

set (leader only) sets the party home to where you are standing. tp teleports any member to it.

/party invite <player> | -c[lear]

Leader only. Invites a logged-in player, or clears all outgoing invites with -c. A party can have at most one fewer outgoing invite than its size, and invites expire after about five minutes.

/party kick <player | index>

Leader only. Kicks a member by name, or by their position on /party list counting from 0, which also works for offline members.

/party ban <add | del | list | clear> [player]

Leader only. add bans an online, logged-in player from the party, removing them if they are in it. del unbans by account name, so it works on offline players. list shows the banned account names and clear removes every ban.

/party privacy <public | private>

Leader only. Changes whether the party can be joined without an invitation.

/party rename <name>

Leader only. Renames the party, using the same name rules as create.

/party resize <size>

Leader only. Changes the maximum size (2 to 8). It cannot be smaller than the current number of members.

/party color <r> <g> <b>

Leader only. Sets the party's color, with each value from 0 to 255.

/party disband

Leader only. Disbands the party.

/party disband -force <party name>

Permission required: msc.party.staff. Disbands any party and notifies its members.

Bugs

Please report bugs by emailing the author at [email protected].

See Also
History

This plugin was written for RenCorner Terraria's Creative server around April 2024 and serves as a key plugin for many other systems and content for the server.

The development of this plugin originally started out as a challenge to myself to see if, at just a second year university student, I could deliver something of higher quality than a certain game company working on a certain video game that made a similar system. Given that my implementation has only improved over time in both stability and features, whereas the system I am referring to has only been revealed as more broken than anyone had thought possible, I believe I have exceeded my own expectations.