Member
Level 1
New Network
0

Forum Posts

1 - 7 of 7

    CraftJunkies
    08/13/2014 6:38 am
    Level 1 : New Network
    At this time, we are only selecting and reviewing candidates we feel match our ideals. Applications will be posted publicly at a later date.
    1
    CraftJunkies
    08/12/2014 2:00 am
    Level 1 : New Network
    Casteris
    CraftJunkiesI figured it out, It was because I didn't make a class yet XD. Anyways, I wrote my first test plugin but the command isn't working:

    here is my code:

    package com.optisize.test;

    import org.bukkit.Bukkit;
    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 Test extends JavaPlugin {

    public void onEnable() {
    Bukkit.getServer().getLogger().info("Test Plugin is enabled");
    }
    public void onDisable() {
    Bukkit.getServer().getLogger().info("Test Plugin is disabled");
    }
    public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[]args) {

    if (!(sender instanceof Player)) {
    sender.sendMessage(ChatColor.GREEN +"The console ran the test command!");
    return true;

    }

    Player player = (Player) sender;
    if (cmd.getName().equalsIgnoreCase("test")) {
    player.sendMessage("You ran the test command");
    }
    return true;
    }
    }


    and my plugins.yml

    name: test
    version: 0.1
    main: com.optisize.test.test
    author: Optisize
    description: a test plugin.
    commands:
    test:
    usage: /<command>
    description: a test command

    Further then I've gotten lol


    But my command doesn't work and I'm not sure why
    1
    CraftJunkies
    08/12/2014 1:49 am
    Level 1 : New Network
    I figured it out, It was because I didn't make a class yet XD. Anyways, I wrote my first test plugin but the command isn't working:

    here is my code:

    package com.optisize.test;

    import org.bukkit.Bukkit;
    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 Test extends JavaPlugin {

    public void onEnable() {
    Bukkit.getServer().getLogger().info("Test Plugin is enabled");
    }
    public void onDisable() {
    Bukkit.getServer().getLogger().info("Test Plugin is disabled");
    }
    public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[]args) {

    if (!(sender instanceof Player)) {
    sender.sendMessage(ChatColor.GREEN +"The console ran the test command!");
    return true;

    }

    Player player = (Player) sender;
    if (cmd.getName().equalsIgnoreCase("test")) {
    player.sendMessage("You ran the test command");
    }
    return true;
    }
    }


    and my plugins.yml

    name: test
    version: 0.1
    main: com.optisize.test.test
    author: Optisize
    description: a test plugin.
    commands:
    test:
    usage: /<command>
    description: a test command
    1
    CraftJunkies
    08/11/2014 7:08 pm
    Level 1 : New Network
    Hello, I would be interested in retaining you for my server
    1
    CraftJunkies
    08/11/2014 7:06 pm
    Level 1 : New Network
    We are currently recruiting staff
    1
    CraftJunkies
    08/11/2014 7:04 pm
    Level 1 : New Network
    Hello, please PM me as I am interested, I have messaged you on Skype as well.
    1
    CraftJunkies
    08/11/2014 6:35 pm
    Level 1 : New Network
    Hello,

    I would be very interested in retaining your services as well
    1

1 - 7 of 7

Welcome