Lava Race Minigame Plugin

Discussion in 'Archived: Plugin Requests' started by Haduke, Mar 13, 2014.

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

    Haduke

    Plugin category: Mini Games

    Suggested name: LavaRace

    What I want: I created Lava Race almost a year ago and it has been downloaded around 17,000 times. The game is doing well and the people who have played it really enjoy it. The only downside about the game is that the world in which it is hosted has to be reset after each playthrough. As a result this game has to be played on a PC hosted server.

    What I would like is for someone with the know how to be able to take this game and turn it into a plugin. The plugin would has an option to reset the game after each playthrough without breaking the core mechanics of the game itself.

    I am including a download link to the actual game (right now it is a bukkit server). This way whomever is interested in trying to make it into a plugin can take a look at it and see if it is at all possible all while seeing how the game is played.

    Here is a link to a youtube video playlist of the game:



    https://www.youtube.com/playlist?list=PLuSo_4a7jHt_tlEhTHKeXXgiMTtdkCnuA

    SkyDoesMinecraft reviewed my game shortly after it was first made. The game has been updated SEVERAL times since then to include ideas and suggestions by him and his friends who originally played it.

    Ideas for commands: A command to start the game such as /lr vote (Lava Race Vote to let other players know you are ready to begin.)
    /lr leave (A command to remove yourself from the game if no one else wishes to play, or you just wish to eliminate yourself)
    /lr spectate (A command that would allow you to spectate the game while others are playing it)

    Ideas for permissions: lavarace.vote
    lavarace.leave
    lavarace.spectate

    When I'd like it by: I would like this to be done as soon as possible if any awesome plugin developers are interested in making it. We plan to use it on our Minecraft server. Credit will be given to the developer of the plugin as long as credit is given to me for originally creating the game.

    Here is a link where you can download the game itself: <Edit by Moderator: Redacted mediafire url>

    Here is a photo showing how many times this game has been downloaded over the past year:

    [​IMG]


    ***I just added up the downloads above since the picture is a bit blurry. The game currently has 25,384 total downloads and counting! Someone REALLY needs to make this into a plugin! Just think how popular it would be for servers hosting minigames!

    BUMP

    BUMP
     
    Last edited by a moderator: Nov 3, 2016
  2. Offline

    Greg.

    I'm confused so it isn't a plugin now?
     
  3. Offline

    TarikBerk

    It was never a plug-in.
     
  4. Offline

    Haduke

    BUMP

    BUMP
     
  5. Offline

    Mysticate

    Eh... This is not a bump because... yeah. Sounds like a great idea!
     
    Haduke likes this.
  6. Offline

    Haduke

    I just hope that it's possible and can be made. I wish I knew more about stuff like this and I would do it myself, lol.
     
  7. Offline

    Sparaat

    I'll look at this tomorrow.

    Sorry, but I get errors in the plugin, that I can't fix.
     
    Haduke likes this.
  8. Offline

    timtower Moderator Moderator

    Can help you if you pm me the issue
     
  9. Offline

    Haduke


    I hope you can figure it out. If not, then perhaps someone else can help you. I greatly appreciate you looking at trying to do this.


    Please keep me informed on the progress. I can't thank you guys enough for looking into this for me. I'm confident that a lot of people will enjoy this game if it can be implemented into a plugin of some sort.

    Any luck?
     
  10. Offline

    Sparaat

    I'm trying to program the code with errors again.

    I get errors again, I send the code to TimTower.

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

    Haduke

    Okay. I appreciate all of the work you guys are putting into this. I know it will be a hit with a lot of servers once it gets implemented into a usable plugin. Right now with the whole issue of having to reset the world after every game, it can't really be used in a server like I would hope to one day see it be used.

    Thanks so much for trying. I hope you guys get it working soon.
     
  12. Offline

    Haduke

    Just checking in again. Could you guys PM me some status updates and let me know if this is in the works? Thanks again! :D
     
  13. Offline

    ElliottOlson

    I will begin work but with my finals currently undergoing, I may not be able to fully work at least 3 days.
     
  14. Offline

    Haduke


    That sounds fine to me. Focus on your school work first. Then you can work on this afterwards. Again, I appreciate anyone who helps out with this project.

    Friday night bump.

    timtower Just wondering if you got that code PM that Sparaat was talking about.

    ElliottOlson Please keep me informed about what you do. Perhaps you could talk with Sparaat and TimTower to see what they have done thus far and combine your ideas to get a quicker release?

    Also, if anyone else would be interested in jumping in or offering some ideas/tips/advice/etc. for this plugin please do so.

    Thanks again guys. I really do appreciate all of you looking into this for me.


    Have a good weekend everyone.
     
  15. Offline

    timtower Moderator Moderator

    Haduke I got it, isn't a coding thing anymore, and don't get error logs to work with either.
     
  16. Offline

    Haduke

    timtower Awesome. We are all pretty excited to see this put into a plugin. I think it will be a big hit with a lot of servers. Will you PM me the plugin when it is ready, or will you post it here? And I know I can't say it enough, thank you so much for doing this.
     
  17. Offline

    timtower Moderator Moderator

    Do note that I don't code any of this.
     
  18. Offline

    Haduke

    BUMP

    Looking for someone who can help out with this. Sparaat did some of it but he keeps getting errors. I have no idea what to do.

    Here is what code he has thus far:

    MainClass:

    Code:
    package sparaat.lavarace.main;

    import org.bukkit.ChatColor;
    import org.bukkit.Location;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.inventory.ItemStack;
    import org.bukkit.plugin.java.JavaPlugin;

    public class LavaRaceMain extends JavaPlugin{

    int items=0, votes=0;
    public Location lobby, leave;
    public static Player playersIngame[] = new Player[16];
    public static boolean ingame, regenworld=true;

    @Override
    public void onEnable(){
    getLogger().info("[LavaRace] LavaRace is enabled!");

    Thread t = new Thread(new regenworld());
    t.start();
    }

    @Override
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
    if(label.equalsIgnoreCase("lr")||label.equalsIgnoreCase("lavarace")){

    Player p = (Player) sender;

    if(args[0].equalsIgnoreCase("join")){
    if(p.hasPermission("lavarace.join")){
    items = 0;
    for(ItemStack item : p.getInventory().getContents())
    {
    if(item != null)
    items++;
    }
    if(items!=0){
    p.sendMessage(ChatColor.RED + "You need an empty inventory to join the game");
    }
    else if(items==0){
    for(int i=0; i<17; i++){
    if(playersIngame==null){
    playersIngame=p;
    p.teleport(lobby);
    sender.sendMessage(ChatColor.GOLD+"[LavaRace] You joined the game " + i + "/16");
    i=17;
    }
    }
    }
    }


    return true;
    }


    if(args[0].equalsIgnoreCase("leave")){
    if(p.hasPermission("lavarace.leave")){
    for(int i=0; i<17; i++){
    if(playersIngame==p){
    playersIngame=null;
    p.teleport(leave);
    i=17;
    }
    }
    }
    return true;
    }

    if(args[0].equalsIgnoreCase("vote")){
    if(p.hasPermission("lavarace.vote")){
    votes++;
    if(votes>=4){
    Thread timer = new Thread(new timer());
    timer.start();
    }
    }
    }
    }
    return true;
    }
    }



    regenwolrd class:


    Code:
    package sparaat.lavarace.main;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.nio.channels.FileChannel;
    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    public class regenworld implements Runnable{

    private static void copyFile(File srcFile, File dstFile)
    throws IOException {
    if (!srcFile.exists()) {
    return;
    }
    if (!dstFile.exists()) {
    dstFile.createNewFile();
    }
    FileChannel source = null;
    FileChannel destination = null;
    source = new FileInputStream(srcFile).getChannel();
    destination = new FileOutputStream(dstFile).getChannel();
    if (destination != null && source != null) {
    destination.transferFrom(source, 0, source.size());
    }
    if (source != null) {
    source.close();
    }
    if (destination != null) {
    destination.close();
    }
    }
    @Override
    public void run() {
    try {
    Thread.sleep(2000);
    run();
    } catch (Exception e) {}
    if(LavaRaceMain.regenworld){
    try {
    copyFile(new File("plugins\\LavaRace" + File.separator),new File("LavaRace" + File.separator));
    } catch (Exception e) {}
    }

    if(LavaRaceMain.playersIngame[1]==null){
    Bukkit.broadcastMessage(ChatColor.GOLD + "[LavaRace] " + ChatColor.YELLOW + LavaRaceMain.playersIngame[0].toString() + " is the winner of LavaRace!");
    }
    }
    }

    and the timer class:


    Code:
    package sparaat.lavarace.main;
    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    public class timer implements Runnable{

    int i=0;

    public void run(){
    try {
    Thread.sleep(1000);
    } catch (InterruptedException e) {e.printStackTrace();}
    int a = i+1;
    Bukkit.broadcastMessage(ChatColor.GOLD + "[LavaRace]" + ChatColor.YELLOW + "The game starts in " + a + "seconds!");
    run();
    }
    }
    So here is what is done thus far. Can anyone do anything with this?

    BUMP!!!

    Well it appears obvious that no one is going to be able do this for me. So someone can kindly come along and close this thread. This will be the last time that I come here asking for help on anything. If people can't come through with something after they step forward, then they should learn to keep their damned mouths shut and not volunteer to begin with.
     
  19. Offline

    Mysticate

    Haduke Can you post the code again with the code option?
     
  20. Offline

    finalblade1234

    This is a rather negative response. You should be grateful people tried to make such a large plugin free of charge.
     
  21. Offline

    Haduke


    I should be grateful, yes. But it's hard to be grateful when someone tells you that they will make it, get your hopes up, then gives up on it. I apologize if my post sounded harsh.

    bennycon1 I sent you a PM with the code that Sparaat had so far.

    Mysticate I'm not sure what you mean about 'code option'.
     
  22. Offline

    Haduke

    Still waiting on all these people who have stepped forward to give me some sort of update about what they are doing, or if they are doing anything at all.
     
  23. Offline

    Haduke

    This plugin is still open for someone to make it for me. Hopefully someone who won't lie to me and try to scam me like someone else just did.
     
  24. Offline

    timtower Moderator Moderator

    Haduke Guess why they added a new rule:
     
    Haduke likes this.
  25. Offline

    Haduke

    timtower Yeah, I guess I should had just left it alone and waited for someone else to look at this. I didn't expect to be a victim of a scam attempt. Guess I will just keep waiting and start learning java myself, lol. Thanks for the rules refreshing though, lol.

    I also find it amazing how someone can delete all of their comments from a thread after they have caught trying to scam someone. I kept a copy of the conversation I had with this person in the event that he tries to scam someone else.

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

    timtower Moderator Moderator

    Haduke Also do note that moderators and admins will be able to see removed comments.
     
    Haduke likes this.
  27. Offline

    Jade Retired Staff

    Removed some posts and locked per request.
     
Thread Status:
Not open for further replies.

Share This Page