ComplimentsAndBossBar! - 1.12.2
1.0ComplimentsAndBossbar is a plugin that lets u see a bossbar and a actionbar with text on cmd.
The plugin lets see a bossbar with text and a actionbar with text if u do /compliment
I do offer a free service to translate the BossBar to other text and put other text/remove the action bar (I also can replace it for a title ;-D)
Its very easy to use
Depends on @MLGEditz 's AdvancedAPI:
https://www.spigotmc.org/resources/advancedapi.55191/
Hope u enjoy the plugin!
-----------------------------------
Source Code:
package com.spinygames.msn.plugin1;
import org.bukkit.boss.BarColor;
import org.bukkit.boss.BarFlag;
import org.bukkit.boss.BarStyle;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import nl.mlgeditz.advancedapi.AdvancedAPI;
public class Main extends JavaPlugin {
@Override
public void onEnable() {
// Bootup Message
getLogger().info("Plugin is enabled!");
}
@Override
public void onDisable() {
getLogger().info("Plugin is disabled!");
}
public boolean onCommand(CommandSender zender, Command cmd, String label, String[] args) {
Player speler = (Player) zender;
if(cmd.getName().equalsIgnoreCase("compliment")) {
if(!(zender instanceof Player)) {
zender.sendMessage("Dit commando kan alleen worden uitgevoerd als speler!");
return false;
}
AdvancedAPI.ActionBar().sendActionBar(speler, "I like ur clothes!");
AdvancedAPI.BossBar().createBossBarForAll("We hope you enjoy our server!", BarColor.BLUE, BarStyle.SOLID, BarFlag.PLAY_BOSS_MUSIC);
return true;
}
return false;
}}Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta