Семен

create a plugin with pvp fetaures like this if player leave in combat he automaticaly killed with message %playername% вышел во время пвп и был наказан and add a cooldowh to items like enderperl bow and more items thats helps in pvp and this cooldown de 30 second and add a block fol elytra and add a actionbar Вы в режиме пвп! this actionbar be 30 seconds and pvp mode be 30 seconds

Kodari AI
KodariSep 5 at 6:30 am 1
PvPControl
PvPControl is a Minecraft plugin that enhances PvP gameplay with combat logging prevention, item cooldowns, and elytra restrictions. When a player enters combat, they receive a 30-second PvP mode with an actionbar message "Вы в режиме пвп!". If a player logs out during combat, they are automatically killed with the message "%playername% вышел во время пвп и был наказан". The plugin applies 30-second cooldowns to PvP-assisting items such as ender pearls, bows, and other combat tools. Elytra flight is blocked during PvP mode to prevent escape. Configurable messages and cooldown durations are stored in a config file, allowing server administrators to customize the plugin behavior.
  1. Build the Gradle/Paper plugin project with XSeries compatibility.

  2. Add combat tracking, 30-second actionbar, combat-log punishment, item cooldowns, and Elytra blocking.

  3. Add Russian defaults and configurable cooldown/message settings.

[Generation stopped]

Семен

for 1.21.11 paper

Kodari AI
KodariSep 5 at 6:30 am 1

The generation was stopped before any content could be produced.

Семен

create a plugin with pvp fetaures like this if player leave in combat he automaticaly killed with message %playername% вышел во время пвп и был наказан and add a cooldowh to items like enderperl bow and more items thats helps in pvp and this cooldown de 30 second and add a block fol elytra and add a actionbar Вы в режиме пвп! this actionbar be 30 seconds and pvp mode be 30 seconds for 1.21.11 paper

Kodari AI
KodariSep 5 at 6:34 am 2

Created PvPControl for Paper 1.21.11.

Features included:

  • 30-second PvP combat mode after player damage.

  • Actionbar message: Вы в режиме пвп!

  • Combat logging punishment:

    • Player is killed when leaving during combat.

    • Broadcast message: %playername% вышел во время пвп и был наказан

  • 30-second item cooldowns for:

    • Ender Pearls

    • Bows

    • Crossbows

    • Tridents

    • Shields

    • Firework Rockets

    • Chorus Fruits

    • Golden Apples

    • Enchanted Golden Apples

  • Elytra flight is blocked during PvP.

  • Configurable messages, combat duration, and cooldown items in config.yml.

  • Uses Java 21 and Paper API 1.21.11-R0.1-SNAPSHOT.

Семен

make plugin for auction house like server Funtime with commands /ah /ah sell /ah search [itemname in russian] and /ah %playername% to see his auctions make this with gui in blue colors on paper 1.21.11

Kodari AI
KodariSep 5 at 6:41 am 2
  1. Inspect the existing Paper 1.21.11 plugin structure and persistence setup.

  2. Add a blue-themed auction-house GUI with /ah, /ah sell, /ah search, and player-auction views.

  3. Add listing storage, buying/canceling behavior, Russian item-name search, and configuration defaults.

The auction house will use Vault for money transactions, persist listings in auctions.yml, and treat /ah <player> as that player’s auction page. Selling uses the item in the seller’s main hand with /ah sell <price>; clicking another player’s listing buys it, while clicking your own listing cancels it.

The auction house is now wired into the plugin. I’m adding the repository needed to resolve the compile-only Vault API dependency used for purchases and seller payouts.Создан аукцион для Paper 1.21.11 с синим GUI.

Возможности:

  • /ah — открыть общий аукцион.

  • /ah sell <цена> — выставить предмет из основной руки.

  • /ah search <название> — поиск предметов, включая русские названия:

    • алмаз

    • изумруд

    • тотем

    • элитра

    • золотое яблоко

    • эндер жемчуг

    • и другие.

  • /ah <игрок> — посмотреть лоты игрока.

  • Нажатие на чужой лот — покупка.

  • Нажатие на собственный лот — снятие с продажи.

  • Проверка свободного места в инвентаре.

  • Деньги переводятся через Vault:

    • покупатель оплачивает лот;

    • продавец получает деньги.

  • Лоты сохраняются в plugins/PvPControl/auctions.yml.

  • Добавлена синяя GUI-тема с пагинацией.

  • Русские сообщения и настройки добавлены в config.yml.

Для работы аукциона на сервере должны быть установлены:

  1. Vault

  2. Любой экономический плагин, например EssentialsX Economy, CMI или другой Vault-совместимый плагин.

Семен

добавь туда на запрет использований ВСЕХ комманд в режиме пвп

Kodari AI
KodariSep 6 at 11:36 am 1
  1. Block every player command while the player is in PvP.

  2. Add a configurable Russian warning message and register no extra listener because the existing combat listener can handle it.

Добавлен запрет всех команд во время PvP-режима.

  • Во время PvP любые команды игрока отменяются, включая /ah.

  • Игрок получает сообщение: Нельзя использовать команды во время PvP.

  • После окончания 30-секундного PvP-режима команды снова доступны.

  • Сообщение настраивается в config.yml через messages.commands-blocked.

Семен

и убери оттуда акцион

Kodari AI
KodariSep 6 at 11:43 am 1
  1. Удалю регистрацию и команды аукциона из главного класса.

  2. Уберу Vault и все auction-настройки из ресурсов.

  3. Удалю классы GUI, хранения, команд и обработчика аукциона.

Аукцион полностью удалён из плагина:

  • Убраны команды /ah, /ah sell, /ah search.

  • Удалён синий GUI аукциона и обработка покупок.

  • Удалены все классы Auction.

  • Убрана зависимость Vault.

  • Удалены настройки и сообщения аукциона из config.yml.

  • PvP-функции, запрет команд, combat-log, cooldown предметов и блокировка элитр остались.

Семен

сделай вместо action bar сделай боссбар он будет выглядет так : сама строка красная а на ней будет текст : &c&lВы в режиме ПВП с игроком <здесь должно быть имя игрока с которым утебя пвп> до окончания <количество секунд до окончания пвп>

Kodari AI
KodariSep 27 at 10:13 am 1
  1. Заменю actionbar на красный BossBar с именем противника и оставшимся временем.

  2. Обновлю полоску раз в секунду и буду скрывать её при окончании PvP, смерти или выходе игрока.

Actionbar заменён красным BossBar: &c&lВы в режиме ПВП с игроком <имя> до окончания <секунды> сек. Полоска обновляется каждую секунду и исчезает по окончании PvP, при смерти или выходе игрока. Текст настраивается через messages.bossbar в config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 415
src/main/java/com/kodari/pvpcontrol/PvPControlPlugin.java
package com.kodari.pvpcontrol;

import java.util.HashSet;
import java.util.Locale;
import java.util.Set;
import org.bukkit.ChatColor;
import org.bukkit.plugin.java.JavaPlugin;

public final class PvPControlPlugin extends JavaPlugin {
    private CombatManager combatManager;
    private Set<String> cooldownItems;
    private int cooldownTicks;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        int combatDuration = Math.max(1, getConfig().getInt("combat-duration-seconds", 30));
        cooldownTicks = Math.max(1, getConfig().getInt("combat-duration-seconds", 30) * 20);
        cooldownItems = new HashSet<>();
        for (String item : getConfig().getStringList("cooldown-items")) {
            cooldownItems.add(item.toUpperCase(Locale.ROOT));
        }

        combatManager = new CombatManager(this, combatDuration);
        getServer().getPluginManager().registerEvents(new CombatListener(this), this);
        getServer().getPluginManager().registerEvents(new CooldownListener(this), this);
        getServer().getPluginManager().registerEvents(new ElytraListener(this), this);

        getServer().getScheduler().runTaskTimer(this, combatManager::sendBossBars, 0L, 20L);
    }

    @Override
    public void onDisable() {
        if (combatManager != null) {
            combatManager.clear();
        }
    }

    public CombatManager getCombatManager() {
        return combatManager;
    }

    public boolean hasCooldown(String materialName) {
        return cooldownItems.contains(materialName.toUpperCase(Locale.ROOT));
    }

    public int getCooldownTicks() {
        return cooldownTicks;
    }

    public String message(String path) {
        return colorize(getConfig().getString("messages." + path, ""));
    }

    public String colorize(String message) {
        return ChatColor.translateAlternateColorCodes('&', message);
    }

}