Hi!
I was recently coding a spigot plugin! I need some help with my plugin.yml file, I am using eclipse . I don't understand what I am doing wrong. Here's my plugin.yml:
It's in VERY early development stages, I was actually testing the new API . However, Here is my code:
No, I am NOT saying this is gonna be my final plugin xD
I will remove the MSG, however, I still do not understand why It refuses to start up when I run my server.
Please, I am VERY new to developing PLEASE PLEASE HELP!!!
Also, my Class is called Main.java
I will thank anyone who helps a ton and reward them by paying. (MAYBE.)
I was recently coding a spigot plugin! I need some help with my plugin.yml file, I am using eclipse . I don't understand what I am doing wrong. Here's my plugin.yml:
name: MogPlug
main: org.bukkit.plugin.Main
version: 1.8
description: first
commands:
msgme:
description: Messages you
It's in VERY early development stages, I was actually testing the new API . However, Here is my code:
package org.bukkit.plugin;
import java.util.logging.Logger;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
public class Main extends JavaPlugin{
public final Logger logger = Logger.getLogger("Minecraft");
public static Main plugin;
@Override
public void onEnable() {
PluginDescriptionFile pdfFile = this.getDescription();
this.logger.info("My plugin has been enabled! It is called" + pdfFile.getName() + pdfFile.getVersion() + ".");
}
@Override
public void onDisable() {
PluginDescriptionFile pdfFile = this.getDescription();
this.logger.info("My plugin has been disabled! It is called" + pdfFile.getName() + pdfFile.getVersion() + ".");
}
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
Player player = (Player)sender;
if(commandLabel.equalsIgnoreCase("msgme")){
player.sendMessage(ChatColor.GREEN + "You have sent yourself a message! This is the most useless feature in Igor's plugin!");
}
return false;
}
}
No, I am NOT saying this is gonna be my final plugin xD
I will remove the MSG, however, I still do not understand why It refuses to start up when I run my server.
Please, I am VERY new to developing PLEASE PLEASE HELP!!!
Also, my Class is called Main.java
I will thank anyone who helps a ton and reward them by paying. (MAYBE.)
4
It is only my class, I am using the craftbukkit api, the snapshot one from BuildTools.jar
Is that your only class? and what api are you using? are you only using the bukkit api?
;-; no replys yet ;---;
I need a reply AS SOON AS POSSIBLE. I am getting paid for developing this plugin for someone, and they expect it done by March 5th.
