Added ability to access the plugin from another one

Added ability to access the plugin from another plugin
This commit is contained in:
Georg Hagen 2014-08-10 00:12:34 +02:00
parent f6854fc146
commit 4b34569729
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@ name: MinePacks
author: GeorgH93
website: http://dev.bukkit.org/bukkit-plugins/minepacks/
main: at.pcgamingfreaks.georgh.MinePacks.MinePacks
version: 1.0
version: 1.0.0.1
commands:
backpack:
description: Main command

View File

@ -22,6 +22,7 @@
import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import org.bukkit.plugin.ServicePriority;
import org.bukkit.plugin.java.JavaPlugin;
import at.pcgamingfreaks.georgh.MinePacks.Database.*;
@ -56,6 +57,7 @@ public void onEnable()
BackpackTitle = config.getBPTitle();
Message_IvalidBackpack = ChatColor.RED + lang.Get("Ingame.IvalidBackpack");
getServer().getServicesManager().register(MinePacks.class, this, this, ServicePriority.Normal);
log.info(lang.Get("Console.Enabled"));
}