Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package enji.lep;
- import java.util.logging.Logger;
- import org.bukkit.ChatColor;
- import org.bukkit.entity.Player;
- import org.bukkit.plugin.PluginDescriptionFile;
- import org.bukkit.plugin.java.JavaPlugin;
- public class Msg extends JavaPlugin {
- Logger logger = Logger.getLogger("Minecraft");
- //Commonly used msgs
- public static String np = ChatColor.RED + "You are not allowed to use this command.";
- public static String oig = "At the moment this is only a in-game command!";
- public static String tti = " tried to issue the command /";
- public static String oeli = "Lightweight Essential Plugin - ";
- public void log(String m) {
- logger.info(m);
- }
- public void logEnable(String pn, String pv) {
- log(Msg.oeli + pn + " Edition " + pv + " enabled.");
- }
- public void logDisable(String pn, String pv) {
- log(Msg.oeli + pn + " Edition " + pv + " disabled.");
- }
- public void noPerm(Player p, String cmd) {
- log(p + "tried to issue the command /" + cmd);
- }
- @Override
- public void onEnable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- logEnable(pdfFile.getName(), pdfFile.getVersion());
- }
- @Override
- public void onDisable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- logDisable(pdfFile.getName(), pdfFile.getVersion());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement