Selection / Pasting Plugin

Discussion in 'Plugin Development' started by thebeastlyboss, Apr 26, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    thebeastlyboss

    Hello I am creating a system off of youtube tutorials but I am going to need far more help. I am creating two commands maybe more need to be created. So I need to make a selection command. /select1 /select2 to select areas 1 and 2 diagnol from each other, then I need a command /generate to generate the selected areas. How would I do that in my classes file?
    This is what I have so far in my .Class file all I've created is my .class file. I need to know if maybe someone could fill in the code for me to create the 2 selection commands and the spawning command. What code would I use? If someone could provide me a code that I can easily copy/paste into my eclipse to complete the plugin. I have been notified on a previous thread that I should make a request for a code or script of code to complete what I want in my description here. So if anyone is willing to make a script of code to complete my plugin that would be great. Read the description to see what I need the code to do.
    Code:
    package me.NavyCraft.Navycraft;

    import org.bukkit.command.CommandSender;
    import org.bukkit.plugin.java.JavaPlugin;

    public class Activator extends JavaPlugin{

    public void onEnable() {
    getLogger().info("Plugin Enabled")
    }

    public void onDisable() {
    getlogger().info("Plugin Disabled") {
    }

    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args ) {
    if(sender instanceof Player) {
    Player player = (Player) sender;
    if(cmd.getname)().equalsIgnoreCase("select"))){
    String
    }
    }
    }
     
  2. thebeastlyboss This should be in plugin development, not requests.
     
  3. Offline

    thebeastlyboss

    Well I was told it should be moved here as a request for a code.
     
  4. thebeastlyboss This is "Plugin Requests", not "Code Requests".

     
  5. Offline

    thebeastlyboss

    Anyways I need someone to make the code or provide the code
     
  6. Offline

    BetrayedQU

    thebeastlyboss Wrong section, but to do this make a Location ____ = p.getLocation();

    Then have 2 commands "/select1" and /select2" or whatever, and have the command save the location of the player to the config. I'm not sure if that's what you want.
     
  7. Offline

    thebeastlyboss

    I want to know if you can take that file for me , and complete the code if you can. If you can send me the completed class file with the commands written in it that would be great.
    Code:
    package me.NavyCraft.Navycraft;

    import org.bukkit.command.CommandSender;
    import org.bukkit.plugin.java.JavaPlugin;

    public class Activator extends JavaPlugin{

    public void onEnable() {
    getLogger().info("Plugin Enabled")
    }

    public void onDisable() {
    getlogger().info("Plugin Disabled") {
    }

    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args ) {
    if(sender instanceof Player) {
    Player player = (Player) sender;
    if(cmd.getname)().equalsIgnoreCase("select"))){
    String
    }
    }
    }

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  8. Offline

    Jade

    Moved to a more appropriate section.
     
  9. Offline

    thebeastlyboss

Thread Status:
Not open for further replies.

Share This Page