Skip to content

Impopite/PartySystem

Repository files navigation

🎉 PartySystem

A lightweight and configurable party plugin for Paper 1.21+ servers.
Players can create parties, invite others, manage members and leave — with full multi-language support.


📋 Requirements

  • Paper 1.21+
  • Java 21+
  • MySQL database

⚙️ Commands

Command Description
/party create Create a new party
/party delete Delete your party (leader only)
/party invite <player> Invite a player to your party
/party remove <player> Remove a player from your party (leader only)
/party info Show info about your current party
/party leave Leave your current party

No special permissions required — all commands are available to every player or to party leader.


📁 Configuration

PartySystem/
├── config.yml         # Database configuration
└── lang/
    ├── IT_it.yml      # Italian language file
    └── EN_us.yml      # English language file

config.yml

generic:
  lang: EN_us   # Available: EN_us, IT_it

database:
  host: "localhost"
  port: 3306
  name: "partysystem_database"
  username: "root"
  password: ""
  ssl: false

lang/EN_us.yml

Messages support & color codes, hex colors and {player} placeholders where applicable.

prefix: "\n&8&l(&b&lᴘᴀʀᴛʏ ꜱʏꜱᴛᴇᴍ&8&l) &r\n\n" # Leave the final space

message:
  no-permission: "&4&lYou don't have enough permissions!"
# ... and so on

🔌 API

PartySystem exposes a simple API to interact with parties and workers from other plugins.

Maven

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.github.Impopite</groupId>
        <artifactId>PartySystem</artifactId>
        <version>VERSION</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

Gradle

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    compileOnly 'com.github.Impopite:PartySystem:VERSION'
}

Gradle (Kotlin DSL)

repositories {
    maven("https://jitpack.io")
}

dependencies {
    compileOnly("com.github.Impopite:PartySystem:VERSION")
}

plugin.yml

Add PartySystem as a dependency in your plugin.yml:

depend: [PartySystem]

Usage

// Get the plugin instance
PartySystem partySystem = (PartySystem) Bukkit.getPluginManager().getPlugin("PartySystem");

// Get the party manager
PartyManager partyManager = partySystem.getPartyManager();

// Check if a player is in a party
boolean inParty = partyManager.playerIsInParty(player);

// Get a player's party
Party party = partyManager.getPartyByMember(player.getUniqueId());

// Get all cached parties
Map<Integer, Party> parties = partyManager.getPartyCache();

Party object

party.id();          // int      — unique party ID
party.ownerUUID();   // UUID     — party leader's UUID
party.members();     // Map<UUID, String> — member UUID → name

📄 License

This project is licensed under the MIT License.
Developed by zImpooTelegram · Discord

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages