greatestbanana13

๐Ÿ’˜ Crush Plugin (Valentineโ€™s Fun)

Crush is a simple and fun Valentine-themed plugin that lets players send a cute โ€œcrush requestโ€ to another player using a command.

โœจ Features

๐Ÿ’Œ Send a crush request with: /crush <player>

Reload Command /crush reload

If Asker Gets Denied and tries again to use /crush send customaizble message

โœ… Target player receives a message like: %player% asked you out โค๏ธ [ACCEPT] [DENY]

๐Ÿง Only one crush request per player (one-time use per target)

๐Ÿ› ๏ธ Fully customizable messages in config.yml

Every message can be edited

Accept + Deny messages for both sender and receiver

๐Ÿ“ฉ How it works

Player runs: /crush <player>

The target receives a clickable request message with ACCEPT and DENY

If accepted:

Both players receive an acceptance message

If denied:

Both players receive a denial message

Kodari AI
KodariFeb 4 at 6:44 pm 7,101 (v2)

Iโ€™ll create a Valentineโ€™s-themed crush request plugin with clickable accept/deny messages and full customization.

CrushPlugin
A fun Valentine's-themed plugin that allows players to send cute crush requests to others. Features clickable accept/deny buttons, one-time use per target, denial tracking to prevent spam, and fully customizable messages. Perfect for adding romantic roleplay elements to your server during Valentine's season or year-round fun.

โœ… CrushPlugin created successfully!

Features implemented:

  • ๐Ÿ’Œ /crush <player> sends clickable crush requests

  • ๐Ÿ”„ /crush reload reloads configuration

  • โœ… Clickable [ACCEPT] and [DENY] buttons with hover text

  • ๐Ÿšซ One-time use per target (tracks accepted/denied)

  • ๐Ÿ’” Custom message when trying again after denial

  • ๐ŸŽจ Fully customizable messages in config.yml

  • ๐Ÿ“ Tab completion for player names and reload command

All messages support color codes (&a, &c, etc.) and placeholders (%player%, %target%). The plugin tracks pending requests, denials, and acceptances to prevent spam and ensure one-time use per target pair.

Kodari can make mistakes. Review important code before using.
Files
src
.gitignore
build.gradle
Code
9 443
src/main/java/com/crushplugin/CrushPlugin.java
package com.crushplugin;

import com.crushplugin.commands.CrushCommand;
import com.crushplugin.managers.ConfigManager;
import com.crushplugin.managers.RequestManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CrushPlugin extends JavaPlugin {
    
    private ConfigManager configManager;
    private RequestManager requestManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.requestManager = new RequestManager(this);
        
        getCommand("crush").setExecutor(new CrushCommand(this));
        
        getLogger().info("CrushPlugin has been enabled! ๐Ÿ’˜");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("CrushPlugin has been disabled!");
    }
}