Launching Tower ( Flatride )

Discussion in 'Spigot Plugin Development' started by BroodRooster, May 13, 2016.

  1. Hi!

    My name is BroodRooster, I'm a Developer for over 1 year. So I decided to make my first Attraction ( Also called Flatride ). Plugin. This one is being inspired from the Spaceshot from Walibi Holland. I want to recreate this Flatride in Minecraft.



    I'm already started with making my plugin, but now I'm coming on to the first thing of the flatride ( Note: This is the first time I'm doing stuff with Flatrides ). So I want to make the Flatride Spawn. This will be done with Minecarts. Like shown under here is how I want them to spawn.

    [​IMG]

    Hopefully you guys can help me with making my first Flatride plugin.

    Here is my basic made code:
    The main class:
    Code (Text):
    public class Main extends JavaPlugin {

        public void onEnable() {
            PluginManager pm = Bukkit.getServer().getPluginManager();
           
            pm.registerEvents((Listener)new SpaceShot(), (Plugin)this);
        }
       
        public void onDisable() {
           
        }
       
        public boolean onCommand(CommandSender sender, Command command, String CommandLable, String[] args) {
            if (command.getName().equalsIgnoreCase("spaceshot")) {
                if (sender.hasPermission("spaceshot.control")) {
                    sender.sendMessage("§cSpaceShot §8- §7No Perms.");
                    return true;
                }
                if (args.length == 0) {
                    sender.sendMessage("§cSpaceShot §8- §7/spaceshot <start/spawn/despawn>");
                    return true;
                }
                if (args[0].equalsIgnoreCase("start")) {
                    //here comes the start thing//
                }
                if (args[0].equalsIgnoreCase("spawn")) {
                    //here comes the spawn thing//
                }
                if (args[0].equalsIgnoreCase("despawn")) {
                    //here comes the despawn thing//
                }
            }
            return false;
        }
    The SpaceShot class:
    Code (Text):
    public class SpaceShot implements Listener{

        public static boolean alreadystarted = false;
        public static boolean alreadyspawned = false;
        public static boolean alreadystopped = false;
       
        public static void StartSpaceshot() {
           
        }
       
        public static void SpawnSpaceshot() {
           
        }
       
        public static void DespawnSpaceshot () {
           
        }
    }
     
    Greats,
    BroodRooster
     
  2. Serializator

    Supporter

    Don't...
    Abuse...
    Static...
    For...
    God...
    Fucking...
    Sake...
     
    • Agree Agree x 2
    • Friendly Friendly x 1