RA-EasterEggChat

A hidden chat-keyword reward system for Paper 1.21.x: players type a secret word in chat and receive console-command rewards, with one-time claims, IP limits, expiry dates, and an in-game creation wizard.

Author: RajaAditya Website: rajaaditya.my.id Version: 1.0 API: Paper 1.21.x


Features

Secret Keywords

  • Hide a keyword anywhere (a Discord post, a sign, a video) and reward the players who find it
  • When a player types the keyword in chat, the reward commands run from the console
  • The chat message containing the keyword can be deleted so it is not spoiled for others

Per-Keyword Limits

  • One-time claims per player
  • Limit per IP so one network cannot farm the same egg with many accounts (IPs are stored hashed)
  • Maximum total claims across the whole server
  • Expiry date after which the keyword stops working
  • Each keyword can be switched on or off without deleting it

Admin Tools

  • Create a keyword step by step in chat with a wizard (rewards, one-time, IP limit, max claims, expiry)
  • List and inspect keywords, toggle or delete them
  • Reset one player's claim for a keyword, or all of their claims
  • Give a keyword's reward to a player by hand
  • eastereggchat.bypass lets staff test a keyword repeatedly

Messages

  • Every player-facing message lives in messages.yml with & color codes

Dependencies

None. The plugin runs standalone. Reward commands can use any plugin that provides the command (for example eco give from EssentialsX).


Installation

  1. Place RA-EasterEggChat.jar into your plugins/ folder
  2. Restart the server
  3. Edit config.yml, keywords.yml, and messages.yml in plugins/RA-EasterEggChat/
  4. Run /eastereggchat reload

File Structure

text
1
plugins/RA-EasterEggChat/
├── config.yml       # Global behavior
├── keywords.yml     # Your easter egg keywords
├── messages.yml     # All messages
└── (data file)      # Claim records

Configuration

config.yml

yaml
1
settings:
  delete-message: true     # remove chat messages containing a keyword
  log-claims: true         # log every claim to the console
  cooldown-message: true   # tell players when they try an already claimed keyword

keywords.yml

yaml
1
keywords:
  mineforgeontop:
    enabled: true
    one-time: true
    limit-per-ip: true
    max-claims: 100        # 0 = unlimited
    expired: "2025-12-31"  # YYYY-MM-DD, "-" or empty for none
    delete-message: true
    reward:
      - "give %player% diamond 5"
      - "eco give %player% 10000"
    message: "&aYou found an easter egg! &e&lCONGRATULATIONS! &a🎉"
FieldDescription
enabledTurn the keyword on or off
one-timeEach player can claim it only once
limit-per-ipOnly one claim per IP address
max-claimsTotal number of claims allowed
expiredLast valid date
delete-messageRemove the chat message for this keyword
rewardConsole commands. %player% is the claimer
messageMessage sent to the claimer

messages.yml (excerpt)

yaml
1
already-claimed: "&cYou have already claimed this easter egg!"
ip-limited: "&cThis easter egg has already been claimed from your network!"
max-claims-reached: "&cThis easter egg has run out of claims!"
keyword-expired: "&cThis easter egg has expired!"
keyword-disabled: "&cThis easter egg is currently disabled!"

Commands

The main command is /eastereggchat (aliases /raeec, /eechat, /easteregg).

CommandDescription
/eastereggchat reloadReload all config files
/eastereggchat listList keywords
/eastereggchat info <keyword>Show a keyword's settings and claims
/eastereggchat toggle <keyword>Enable or disable a keyword
/eastereggchat createStart the keyword creation wizard
/eastereggchat delete <keyword>Delete a keyword
/eastereggchat give <player> <keyword>Give a keyword's reward to a player
/eastereggchat reset <player> <keyword>Reset one claim of a player
/eastereggchat resetall <player>Reset all claims of a player

Permissions

PermissionDefaultDescription
eastereggchat.adminopUse all admin commands
eastereggchat.bypassfalseIgnore one-time and IP limits (for testing)

License

Developed by RajaAditya — rajaaditya.my.id