Broadcast Message problem

Discussion in 'Plugin Development' started by Niicck, Oct 19, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Niicck

    It doesn't make a Broadcast Message!

    MainClass:


    Code:
    package nick.plugin.de;
    
    import org.bukkit.Bukkit;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class MainKlasse extends JavaPlugin{
      
        String pluginName = "Plugin";
        String prefix = "§7[§6" + pluginName + "§7] ";
      
        @Override
        public void onEnable() {
            Bukkit.getServer().broadcastMessage(prefix + "§9Das Plugin wurde geladen");
            //Also tryed it with: Bukkit.broadcastMessage(prefix + "§9Das Plugin wurde geladen");
        }
    }


    plugin.yml:

    Code:
    name: Plugin
    version: 1.0
    main: nick.plugin.de.MainKlasse
    description: It is a plugin
    author: Nick
    Need help.. thanks!

    I fixed it.. i had the plugin multiverse-core also on the server and when i deinstalled it worked!
    But can u tell me why pls?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 20, 2016
  2. Offline

    Lolmewn

    Lemme guess, you reloaded the server while you were on it? This broadcast only broadcasts when the server starts to players.
    Please note: Bukkit already shows you when the plugin is being loaded/unloaded.
     
Thread Status:
Not open for further replies.

Share This Page