项目作者: T0biii

项目描述 :
Bukkit JoinMusic
高级语言: Java
项目地址: git://github.com/T0biii/JoinMusic.git
创建时间: 2014-08-04T22:38:21Z
项目社区:https://github.com/T0biii/JoinMusic

开源协议:MIT License

下载


JoinMusic

Build Status
Spigot Version
bStats Servers
bStats Players
GitHub license
Discord

Description

JoinMusic is a Bukkit/Spigot plugin that plays music when a player joins the server. It supports both standalone Spigot servers and BungeeCord networks.

Features

  • Plays music when a player joins the server
  • Supports BungeeCord networks
  • Configurable delay before playing music
  • Optional music looping
  • World-specific music playback
  • PlaceholderAPI support
  • Automatic update notifications

Requirements

Installation

  1. Download the latest version of JoinMusic
  2. Download and install NoteBlockAPI
  3. Place both JAR files in your plugins folder
  4. Restart your server
  5. Configure the plugin to your liking

BungeeCord Setup

If you’re using BungeeCord:

  1. Install the JoinMusic plugin on all Spigot servers
  2. Install the JoinMusic Bungee plugin on your BungeeCord server
  3. Enable the BungeeCord option in the configuration of all Spigot servers

Configuration

The main configuration file is located at plugins/JoinMusic/config.yml:

  1. # Main music file or folder
  2. music: Song.nbs
  3. options:
  4. # Update settings
  5. update-check: true # Checks for updates on server start
  6. updateinfo: true # Shows update notifications for OPs
  7. # General settings
  8. metrics: true # Sends anonymous usage statistics
  9. delaySong: 2 # Delay in seconds before playing
  10. bungeecord: false # Enable/disable BungeeCord mode
  11. printSongTitel: true # Shows the song title when playing
  12. allowDisabling: true # Allows players to disable music for themselves
  13. # Music settings
  14. music:
  15. random: false # Enable random music selection
  16. RandomFoldername: "random" # Folder for random music selection
  17. Mode: "MonoMode" # Playback mode (MonoMode/StereoMode)
  18. 10Octave: false # Enable 10 octaves
  19. Volume: 100 # Volume (0-100)
  20. AllowLooping: false # Play music in a loop
  21. OneWorldonly: false # Play music only in a specific world
  22. Worldname: "world" # Name of the world if OneWorldonly is enabled
  23. # Message settings
  24. messages:
  25. prefix: "&7[&bJoinMusic&7]"
  26. reload: "&3The reload was successful!"
  27. stop: "&3Stopped playing the song! &7&oYou can disable playing a song on join with &b&o/jm disable"
  28. no-permission: "&cYou don't have enough permissions"
  29. disabled: "&3Disabled playing a song when joining. To enable it again, use &b/jm enable"
  30. enabled: "&3Enabled playing a song when joining"
  31. playing: "&2Started Playing the Song: &a&l%song%&2. You can stop it using &a/jm stop"
  32. help:
  33. stop: "Stop playing the Song!"
  34. disableOwn: "Disable playing a song when joining"
  35. enableOwn: "Enable playing a song when joining"

Commands

  • /joinmusic or /jm - Shows help with available commands
  • /joinmusic reload - Reloads the configuration
  • /joinmusic stop - Stops the currently playing music
  • /joinmusic disable - Disables automatic music playback when joining the server
  • /joinmusic enable - Enables automatic music playback when joining the server

Permissions

  • JoinMusic.use - Allows using the /joinmusic command
  • JoinMusic.play - Allows using /joinmusic play
  • JoinMusic.command.stop - Allows using /joinmusic stop
  • JoinMusic.command.reload - Allows using /joinmusic reload
  • JoinMusic.command.disableOwn - Allows using /joinmusic disable and /jm enable
  • JoinMusic.update - Receives update notifications

PlaceholderAPI

JoinMusic supports the following PlaceholderAPI placeholders:

  • %joinmusic_version% - Shows the current version of the plugin
  • %joinmusic_titel% or %joinmusic_song% - Returns the title of the currently playing song
  • %joinmusic_author% - Returns the author of the currently playing song
  • %joinmusic_originalauthor% - Returns the original author of the currently playing song
  • %joinmusic_description% - Returns the description of the currently playing song
  • %joinmusic_prefix% - Returns the plugin prefix

License

This project is licensed under the MIT License.