[Solved] Golf Minigame

Discussion in 'Archived: Plugin Requests' started by ShCr, Nov 28, 2013.

  1. Offline

    ShCr

    (http://cdn.memegenerator.net/instances/400x/31573089.jpg)

    Plugin category: Fun

    Suggested name: Anything who looks like a golf minigame's Name. Or anything you want.

    What I want:
    • The player's side:
    A plugin that allow players, when right clicking a sign (like every sign in loobies), a player is tp to a golf map, with holes & s**t. The player receives a wooden hoe (for exemple) and when he right click, it launch a snowball where he's looking.

    If the player has send the snowball in the hole, well, he wins [sheep] (could make a par system?)
    If he sends his ball anywhere else, a message display how far from the hle he is.

    When every player has played his turn, they're tp to their ball, and the player which is farthest from the hole play first.

    They could be sand/grass/green zones which modify the force of the launch (if it's possible) and water, for players who want to loose.

    • The admin's side:
    The admin will ba able to set the lobby, the signs...
    In a map, he set the first hole, whith a start point, a hole, and the "par" objective.
    (par objectives, and players score in a sidebar scoreboard?)
    Then a second hole...
    Then he finishes.

    When I'd like it by: Hey, you're the developper. It's all as you want. I'd like it for yesterday (please)

    Thank you all!
     
  2. Offline

    TryB4

  3. Offline

    ShCr

    Hell Yeah. Gonna take a look, thx TryB4
    EDIT:
    I've got an error in the console:
    Code:
    2013-11-28 20:50:24 [SEVERE] Could not load 'plugins\GolfCraft.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: musaddict/golfcraft/Golfcraft : Unsupported major.minor version 51.0
     
  4. Offline

    TryB4

    ShCr
    What version of java are you using?
     
  5. Offline

    ShCr

    TryB4

    Version 7 Update 45, already checked.
     
  6. Offline

    TryB4

    ShCr
    hmm, I don't know then.
     
  7. Offline

    timtower Administrator Administrator Moderator

    Are you running on Mac? Seen more issues about that.
    TryB4 You could try compiling with java 6
     
  8. Offline

    TryB4

  9. Offline

    ShCr

    timtower
    I'm running on PC :/

    Edit: I have actually 2 java installed on my PC:
    Java 7 Update 45 by Oracle
    Java(TM) 6 Update 16 (64bits) by Sun Microsystems, Inc
    Should I try to remove the old java?​
     
  10. Offline

    timtower Administrator Administrator Moderator

    Lol, my bad :p
    You could also try to set the path of java to the java 7 version
     
  11. Offline

    ShCr

    In the java setting, i've set the path for the jre7, but everytime i close & re-open the window, the path is the same as before :/
     
  12. Offline

    timtower Administrator Administrator Moderator

    Also tried setting it in the run.bat? ( or how you may have called it )
     
  13. Offline

    ShCr

    timtower
    How should I modify the run.bat? (yes i've called it like that)
     
  14. Offline

    timtower Administrator Administrator Moderator

    Just open it with notepad, then you probably are looking for something like this:
    Code:
    @echo off
    set PATH=%PATH%;C:\Program Files (x86)\Java\jre7\bin
    java -Xmx1024M -Xms1024M -jar craftbukkit.jar
    pause
     
    ShCr likes this.
  15. Offline

    ShCr

    There was this in my run.bat
    Code:
    java -Xms1024M -Xmx2048M -jar craftbukkit-1.6.2-R0.1.jar true
    PAUSE
    THANK YOU! It works! But when I set -Xmx to 2048M it says:
    Code:
    Error occured during initialization of VM
    Incompatible minimum and maximum heap sizes specified
     
  16. Offline

    timtower Administrator Administrator Moderator

    The numbers need to be the same:
    So both need to be 2048
     
  17. Offline

    ShCr

    timtower
    Thank you dude, you've been really helpful.

    TryB4
    Thank you for the plugin, and for trying to help me ;)

    I wish you all the best!
     
    TryB4 and timtower like this.
  18. Offline

    timtower Administrator Administrator Moderator

    Always a please to help somebody ;)
     

Share This Page