Skip to content

refactor plugin#4

Open
Mapacheee wants to merge 14 commits intoEspryth:mainfrom
Mapacheee:main
Open

refactor plugin#4
Mapacheee wants to merge 14 commits intoEspryth:mainfrom
Mapacheee:main

Conversation

@Mapacheee
Copy link

Hi! This is a refactor of EasyJoin to support lastest versions (1.21.x) and made with WinterFramework.

This includes new features as:

Avatar

[AVATAR_MESSAGE] &aWelcome to the server!<nl>&7%player_name%<nl>&bEnjoy your stay!
{3BB7B847-C5CA-46D5-A3BF-040D85449CF4}

Sound

Now [SOUND] support SpigotMC & PaperMC API, so you can use custom sounds of texturepacks too!

- '[SOUND] ENTITY_PLAYER_LEVELUP;1;1'
- '[SOUND] minecraft:entity.player.levelup;1;1'
- '[SOUND] someplugin:custom.sound;1;1'

Folia Support

{DA94F0B3-3CAE-4DE8-90FC-C8EB74E73AA9}

EasyJoin now works in PaperMC and Folia (and their forks)!

Misc comments

  • This refactor doesn't have Auth hooks!
  • List of actions availables:
 MESSAGE ACTIONS:
   [MESSAGE] <text>
     Sends a message to the player
     Use <c> at the start to center the message
     Example: `[MESSAGE] &aWelcome to the server!`
     Example: `[MESSAGE] <c>&6Centered Message`

   [BROADCAST] <text>
     Sends a message to all online players
     Use <c> at the start to center the message
     Example: `[BROADCAST] &e%player_name% joined!`

   [JSON_MESSAGE] <json>
     Sends a JSON message to the player (clickable, hoverable)
     Example: `[JSON_MESSAGE] {"text":"Click me","clickEvent":{"action":"open_url","value":"https://example.com"}}`

   [JSON_BROADCAST] <json>
     Sends a JSON message to all online players

   [ACTIONBAR] <text>
     Shows a message in the player's action bar
     Example: `[ACTIONBAR] &aWelcome back!`

   [BROADCAST_ACTIONBAR] <text>
     Shows a message in all players' action bars

 TITLE ACTIONS:
   [TITLE] <title>;<subtitle>;<fadeIn>;<stay>;<fadeOut>
     Shows a title to the player
     Times are in ticks (20 ticks = 1 second)
     Example: `[TITLE] &6Welcome;&eEnjoy your stay!;10;70;20`

   [BROADCAST_TITLE] <title>;<subtitle>;<fadeIn>;<stay>;<fadeOut>
     Shows a title to all online players

 AVATAR ACTIONS:
   [AVATAR_MESSAGE] <line1><nl><line2><nl>...
     Sends a message with the player's Minecraft skin avatar
     Use <nl> to separate lines (up to 8 lines)
     Example: `[AVATAR_MESSAGE] &aWelcome<nl>&7%player_name%`

   [AVATAR_BROADCAST] <line1><nl><line2><nl>...
     Broadcasts a message with the player's avatar to all players

 SOUND ACTIONS:
   [SOUND] <sound>;<volume>;<pitch>
     Plays a sound to the player
     Sound names: https://jd.papermc.io/paper/1.21.11/org/bukkit/Sound.html
     Example: `[SOUND] ENTITY_PLAYER_LEVELUP;1;1`

   [BROADCAST_SOUND] <sound>;<volume>;<pitch>
     Plays a sound to all online players

 FIREWORK ACTION:
   [FIREWORK] <type>;<amount>;<power>;<r,g,b>;<r,g,b>;...
     Spawns fireworks at the player's location
     Types: BALL, BALL_LARGE, BURST, CREEPER, STAR
     Colors are in RGB format (0-255)
     Example: `[FIREWORK] STAR;3;2;255,215,0;255,140,0`

 COMMAND ACTIONS:
   [CONSOLE] <command>
     Executes a command as console
     Example: `[CONSOLE] give %player_name% diamond 1`

   [PLAYER] <command>
     Makes the player execute a command
     Example: `[PLAYER] spawn`

 UTILITY ACTIONS:
   [CLEARCHAT] <lines>
     Clears the player's chat by sending empty lines
     Example: `[CLEARCHAT] 100`

   [DELAY] <seconds>
     Pauses execution for specified seconds before next action
     Example: `[DELAY] 3`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant