1

Spigot Plugins [Help Required]

HotPigeon •2/20/16 1:12 pm
•
481
•
2/20/2016 4:35 pm
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:

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.)
Posted by
HotPigeon
Level 1 : New Network
0

  Have something to say?

Join • Sign in

4

HotPigeon
• 02/20/2016 4:35 pm
• Level 1 : New Network
It is only my class, I am using the craftbukkit api, the snapshot one from BuildTools.jar
1
Bisquit
• 02/20/2016 1:45 pm
• Level 16 : Journeyman Network
Is that your only class? and what api are you using? are you only using the bukkit api?
1
HotPigeon
• 02/20/2016 1:39 pm
• Level 1 : New Network
;-; no replys yet ;---;
1
HotPigeon
• 02/20/2016 1:15 pm
• Level 1 : New Network
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.
1

Welcome