Sueta

BossBarAd - Let your players advertise via the boss bar

1.0

A simple way for players/donors to send a message on everyone's bossbar!

·Plugin

Unsupported as I am no longer actively involved in the minecraft scene. It may still work for you or not, please test thoroughly. Thanks for downloading and using my contributions to the community <3

This plugin allows players with the right permission to broadcast a message to all players currently online using the boss bar. It also comes with a few other key features such as:

  • Ability to set a cooldown which is applied on players individually.
  • Ability to set the duration of the ad.
  • System that prevents players from posting an ad until the current one is done.
  • Notification for staff when an ad is created.
  • Supports color codes.
  • Ability for staff to forcefully clear the boss bar.

Permissions:

  • bossbarad.staff (get notified when an ad is created and ability to clear the bar using /bossbarclear)
  • bossbarad.ad (ability to create ads)

Commands:

  • /bossad (message) -> create an ad
  • /bossadclear -> clears the current ad

Everything you should need to edit is in the configuration

Configuration
#
# Created by fergydanny, check out my other resources at: https://www.spigotmc.org/resources/authors/fergydanny.25236/
#
# Permissions:
#  - bossbarad.staff (get notified when ads are created and ability to clear the boss bar forcefully with /bossadclear).
#  - bossbarad.ad (create an ad with /bossad <message>
#
# Key features:
#  - The message supports color codes
#  - You can set a cooldown between players individual ads
#  - Staff can clear the bar incase something bad is on it
#  - It doesn't let someone start a new ad if the bar is currently in use by someone else
#  - You can set how long each ad lasts

# Set the cooldown between a player's ads (in minutes). This means that a player can only send a boss bar ad every X minutes.
cooldown: 60

# How long should each ad stay on peoples screens? (in seconds)
duration: 30

# Configure the messages:
messages:
  bossbarclear-success: '&aSuccessfully cleared the boss bar!'
  no-permission: '&cYou do not have permission.'
  invalid-format: '&ePlease input a message. Command: /bossad <message>'
  in-use: '&cBar is currently in use, try again when it is not!'
  cooldown-hit: '&cYou must wait 1h between bossbar advertisements. You still have to wait &7%minutes% &cminutes.'
  staff-notification: '&7[&cBossBar&7] &cPlayer &7%name% &chas sent the following boss bar message: &7%message%&c. Use &7/bossadclear &cto force clear it.'

Similar projects

Plugin →