irmplayz_

make this plugin mere pr 41 credits hain agr yeh plugin bnadogy tou prmium subscription lunga

Kodari AI
KodariAug 20 at 5:28 pm 1
MerePr41CreditsPlugin
A Minecraft plugin that manages player credits and premium subscription status. Players earn credits through gameplay activities, which can be spent on premium features. The plugin tracks credit balances, handles premium subscription activation, and provides commands for players to check their credit balance, purchase premium status, and manage their subscription. Includes a comprehensive API for developers to integrate credit rewards and premium features into their own plugins.

Plugin bana dunga, lekin abhi plugin ka feature/specification nahi diya gaya. Yeh details bhej dein:

  1. Plugin ka naam

  2. Minecraft/server version (e.g. Paper 1.21.4)

  3. Kya features chahiye? Commands, GUI, economy, permissions, etc.

  4. Required messages/configuration

  5. Kya Vault, PlaceholderAPI ya koi aur dependency use karni hai?

Aap simple words mein idea bata deinβ€”main complete project files se build kar dunga.

irmplayz_
πŸ“Ž 1 file 5,820 chars
πŸ“„
pasted-code-1787246926143.txt
txt 308 lines
β–Ά
Update the previously requested Teams plugin with the following **important competitive-season system**.

## TEAM SIZE

Each team must have a maximum of **5 players**.

* Maximum team size: **5 players**
* The owner counts as one of the 5 players.
* A 6th player must NOT be allowed to join.
* `/team invite` should fail if the team is already full.
* `/team join` should also fail when the team has 5 members.

Make the maximum team size configurable, but set the default to:

`max-team-size: 5`

---

# 7-DAY TEAM SEASON SYSTEM

Add a proper **real-life 7-day Team Season system**.

The season should run for exactly:

**7 real-life days**

Team points earned through PvP kills during the season contribute toward the leaderboard.

Default:

`season-duration: 7 days`

The timer must use real-world/server time, meaning server restarts must NOT reset the season timer.

Store the season start/end timestamp persistently.

---

# SEASON LEADERBOARD

During the season:

`/team top`

should display the current rankings.

Example:

**πŸ† Team Leaderboard**

1. πŸ”΄ Curse β€” 420 Points
2. πŸ”΅ Alpha β€” 370 Points
3. 🟣 Shadow β€” 280 Points
4. 🟒 Venom β€” 190 Points

Also show the remaining time:

**Season ends in: 2d 14h 32m**

Keep this clean and easy to read.

---

# SEASON END

When the 7 real-life days are completed:

1. Automatically determine the team with the highest points.
2. Announce the winning team to the entire server.
3. Display the winning team's members.
4. Display their final points.
5. Start a new season automatically.
6. Reset team points for the new season.
7. Keep the teams themselves intact.
8. Store previous season results.

Example server announcement:

**πŸ† TEAM SEASON COMPLETE!**

**CURSE** has won Season #3!

**Final Score:** 1,240 Points

**Members:**
Player1
Player2
Player3
Player4
Player5

Congratulations to the champions!

Then announce:

**βš”οΈ Season #4 has officially started!**

---

# SEASON HISTORY

Add:

`/team seasons`

This should display previous winning teams.

Example:

**πŸ“œ Season History**

Season #3 β€” Curse β€” 1,240 Points
Season #2 β€” Alpha β€” 980 Points
Season #1 β€” Shadow β€” 1,110 Points

Store previous season data persistently.

---

# WINNER REWARD SYSTEM

Add a configurable reward system for the winning team.

For example:

```yaml
season-winner:
  rewards:
    - "give %player% diamond 5"
```

The command should execute for every member of the winning team.

Make rewards completely configurable so I can change them later.

Also support a configurable winner announcement.

---

# TIE SYSTEM

If two teams have exactly the same number of points when the season ends:

Do NOT randomly choose a winner.

Use a fair tie-breaker system.

Recommended:

1. Higher total kills wins.
2. If kills are also tied, the teams share the winning position / use a configurable tie behavior.

Make this system reliable and exploit-resistant.

---

# EXTRA FEATURE β€” TEAM KILLS

Track team statistics during each season:

* Total kills
* Total deaths
* K/D
* Team points

Add:

`/team stats`

Example:

**βš” Curse β€” Team Stats**

Points: 420
Kills: 42
Deaths: 18
K/D: 2.33

These statistics should reset when a new season begins.

---

# EXTRA FEATURE β€” PERSONAL CONTRIBUTION

Also track how many points each team member contributed.

For example:

**Curse β€” Member Contributions**

Player1 β€” 160 Points
Player2 β€” 120 Points
Player3 β€” 80 Points
Player4 β€” 40 Points
Player5 β€” 20 Points

This makes the competition more interesting.

---

# TAB DISPLAY

Keep the original requirement:

Players should appear in TAB with their team identifier and selected team color.

Example:

`[CURSE] PlayerName`

Team colors must work dynamically.

If the team changes its color:

`/team color red`

the TAB display should update automatically.

Do NOT create a custom TAB INVENTORY GUI.

Use the normal Minecraft TAB list.

---

# IMPORTANT β€” KEEP IT SIMPLE

This plugin should NOT become a giant public-server framework.

DO NOT add:

* Economy
* Shops
* Crates
* Warps
* Homes
* Claims
* Kits
* Auctions
* Complicated GUIs
* Team menus
* Team dashboards
* Unnecessary dependencies

The main purpose is:

**5-player Teams + Colored TAB + Team Info + Team Points + PvP Scoring + 7-Day Seasons + Leaderboard + Winners.**

Add only small features that directly improve this team-season system.

---

# ADMIN COMMANDS

Add suitable admin commands, for example:

`/teamadmin forcestart`
`/teamadmin endseason`
`/teamadmin resetpoints`
`/teamadmin reload`
`/teamadmin setpoints  `

Protect them with:

`simpleteams.admin`

---

# CONFIGURATION

Everything important should be configurable:

```yaml
max-team-size: 5

points-per-kill: 10

season:
  duration-days: 7
  automatic-new-season: true

tab:
  enabled: true
  format: "[%team%] %player%"

winner:
  announce: true
  rewards-enabled: true

leaderboard:
  size: 10
```

Messages should also be configurable.

---

# FINAL DESIGN GOAL

Make this feel like a **clean competitive Teams Season plugin** rather than a generic teams plugin.

The gameplay loop should be:

**Create Team β†’ Recruit up to 5 Players β†’ Fight Other Teams β†’ Earn 10 Points Per Kill β†’ Climb Leaderboard β†’ 7-Day Season Ends β†’ Champion Announced β†’ Rewards β†’ New Season Begins.**

Make the UI/messages polished, the commands intuitive, the TAB display clean, and the system reliable after server restarts.

Do not add unnecessary features just to increase the plugin size. Add only features that genuinely improve the competitive team-season experience.
Kodari AI
KodariAug 20 at 5:31 pm 3
TeamSeasonChampions
A competitive 5-player team plugin featuring persistent 7-day seasons, PvP kill-based scoring, dynamic colored TAB display, and automated season cycling. Includes team management commands, leaderboards, season history, configurable winner rewards, tie-breaker logic, and per-member contribution tracking. Admin tools allow season control and point management. All data persists across restarts with configurable durations, point values, and reward commands.
  1. Core team system: 5-player teams, invites, membership, colors, persistence, and normal TAB formatting.

  2. Season engine: persistent 7-day timer, PvP scoring, stats, contributions, leaderboard, history, tie-breakers, rewards, and automatic resets.

  3. Commands/admin/config: /team, /teamadmin, configurable messages, announcements, rewards, and reload support.

  1. SimpleTeams plugin created with configurable 5-player teams, invites, join/leave/kick/disband, team info/list, and team colors.

  2. Added persistent 7-day real-time seasons that survive restarts.

  3. Added PvP scoring, kills, deaths, K/D, member contributions, leaderboard, season history, tie-breakers, rewards, and automatic new seasons.

  4. Added normal Minecraft TAB formatting such as [CURSE] PlayerName, with dynamic team color updates.

  5. Added commands:

    • /team create

    • /team invite

    • /team join

    • /team leave

    • /team kick

    • /team disband

    • /team info

    • /team list

    • /team color

    • /team top

    • /team seasons

    • /team stats

    • /teamadmin forcestart

    • /teamadmin endseason

    • /teamadmin resetpoints

    • /teamadmin reload

    • /teamadmin setpoints

All important settings and messages are configurable in config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
15 1,204
src/main/java/com/kodari/simpleteams/SimpleTeamsPlugin.java
package com.kodari.simpleteams;

import com.kodari.simpleteams.command.TeamAdminCommand;
import com.kodari.simpleteams.command.TeamCommand;
import com.kodari.simpleteams.listener.CombatListener;
import com.kodari.simpleteams.listener.PlayerListener;
import com.kodari.simpleteams.manager.SeasonManager;
import com.kodari.simpleteams.manager.TabManager;
import com.kodari.simpleteams.manager.TeamManager;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Map;

public class SimpleTeamsPlugin extends JavaPlugin {
    private TeamManager teamManager;
    private SeasonManager seasonManager;
    private TabManager tabManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        teamManager = new TeamManager(this);
        seasonManager = new SeasonManager(this, teamManager);
        tabManager = new TabManager(this, teamManager);

        getServer().getPluginManager().registerEvents(new CombatListener(teamManager, seasonManager), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(tabManager), this);
        TeamCommand teamCommand = new TeamCommand(this);
        PluginCommand team = getCommand("team");
        if (team != null) {
            team.setExecutor(teamCommand);
            team.setTabCompleter(teamCommand);
        }
        PluginCommand admin = getCommand("teamadmin");
        if (admin != null) {
            admin.setExecutor(new TeamAdminCommand(this));
        }
        seasonManager.startTask();
        Bukkit.getScheduler().runTask(this, tabManager::updateAll);
    }

    @Override
    public void onDisable() {
        if (seasonManager != null) {
            seasonManager.save();
        }
        if (teamManager != null) {
            teamManager.save();
        }
    }

    public TeamManager getTeamManager() {
        return teamManager;
    }

    public SeasonManager getSeasonManager() {
        return seasonManager;
    }

    public TabManager getTabManager() {
        return tabManager;
    }

    public String message(String key, String fallback, Map<String, String> values) {
        String result = com.kodari.simpleteams.util.MessageUtil.format(this, key, fallback, values);
        return result;
    }

    public String color(String text, Map<String, String> values) {
        if (values != null) {
            for (Map.Entry<String, String> entry : values.entrySet()) {
                text = text.replace("%" + entry.getKey() + "%", entry.getValue());
            }
        }
        return ChatColor.translateAlternateColorCodes('&', text);
    }
}