Sueta
JO

JoinSound

1.9

A simple plugin that allows you to set a sound for the join

·Plugin

Hi! I am new to creating plugins, I hope you find it useful.
If you find bugs or want something to be added, write it in the comments

Set a custom sound when the player logs in.

You can edit the sound from the config.yml
There is also the "first join sound" option which allows you to have a personalized sound for the player you play the first time, and the delay to start the sound.

Do you want me to also add a customizable message for the join?

Commands:
/joinsound help
/joinsound reload
/joinsound normalJoin
/joinsound firstJoin

Permission:
All commands
: joinsound
Personalized sound to a player: joinsound.personalized

config.yml :

########################################################################
#                             JoinSound                                #
########################################################################


#A list of supported sounds can be found here: https://www.digminecraft.com/lists/sound_list_pc.php

#First Join
firstJoinSound: entity.ender_dragon.growl
firstJoinVolume: 3
firtsJoinPitch: 1.0

#Normal Join
sound: entity.player.levelup
volume: 3
pitch: 1.0

# Personalized join sound ( E.s sound when owner joins )
personalized-sound:
  enabled: false
  play-to-all-players: true
  sound: ui.toast.challenge_complete
  volume: 3
  pitch: 1.0
  permission: joinsound.personalized # Works with permission plugins

# Do you want a sound to be played to all online players when a player join?
sound-to-all-on-join:
  enabled: true
  sound: block.note_block.harp
  volume: 3
  pitch: 1.0

# Do you want a sound to be played to all online players when a player leave?
sound-to-all-on-leave:
  enabled: true
  sound: block.note_block.bass
  volume: 3
  pitch: 1.0


#Delay Time
#If necessary, write a delay value if the sound is not listened to completely ( accept numbers with dot ) ( is in milliseconds )
# E.g. delay: 100
delay: 0


#Messages

#Reload message
reload-message: "&6[&9JoinSound&6]&a&l Reload completed!"

#Message in the console when the plugin is turned on
plugin-start: "&2JoinSound has been activated!"

#Message in the console when the plugin is turned off
plugin-stop: "&4JoinSound has been disabled!"

#Help message ( /joinsound help )
help-message:
   - "&6&nList of commands:"
  - "&a&l/joinsound help &r&b-->&r &9&oView this menu&r"
  - "&a&l/joinsound reload &r&b-->&r &9&oReload config.yml&r"
  - "&a&l/joinsound normalJoin &r&b-->&r &9&oView and play the current sound&r"
  - "&a&l/joinsound firstJoin &r&b-->&r &9&oView and play the current sound for a player who joins for the first time\n&r"

# /joinsound normalJoin
normaljoin-message: "&3&lSound name: &r&c&o"

# /joinsound firstJoin
firstjoin-message: "&3&lSound name: &r&c&o"

# Wrong usage message ( /joinsound )
wrongusage-message: "&9&oIncorrect use of the command:\nFor a list of commands type &r&b--> &r&a&l/joinsound help"

Similar projects

Plugin →