Golfcraft
GlfCraft
Version 1.6.0
CB 1.6.2-R0.1
Golfcraft lets you play golf! Simply type /golf, and you will be given a bow and arrow. You can hit (shoot) the ball (arrow), and it will generate a sign where it lands (unless you hit the ball into the water, or the trees).
There are anti-griefing parameters in place, so each golfer needs to destroy their own sign before their arrow will generate a new sign.
Materials of recognition:
- Green Wool: the Fairway (main material)
- Lime Wool: the Green (putting material)
- Sand: Sand Trap (stops balls from bouncing)
- Glowstone: the Cup
- Grass: the Rough (reduces ball's bounce velocity)
- Fence: the Flag
- Wood: Teeing Ground ( start of the course, gives your driver a boost)
Features:
- Clubs!
- Up to 12 clubs to chose from
- Each club has its own advantage
- Snowballs!
- Arrows are converted to snowballs when you shoot!
- Create a golf course by adding holes
- Creating holes set their par
- The par is used for per-hole scoring
- Per-hole golf-info chat channels
- Any players in the same hole will know what happens with the other players
- If the ball landed on a valid block, a sign with the player's name is placed, marking where the ball landed
- This sign MUST be destroyed in order for another sign to generate
- Once destroyed, the player cannot move more than one block away until their next ball lands in a valid location
- Per hole scoring
- Uses that hole's par to compare how many hits the player took.
- Prints the score via number of hits, as well as golf lingo (Bogie, Eagle, etc)
- SuperPerms
- Plenty of anti-griefing parameters
- I try my best to make sure players arent spammed with text or signs. I've spent most of my time coding making sure they cant.
Permissions: (overridden by OP's)
- golf.spectate
- (allows the player to simulate golf (no scoring, or messages))
- golf.play
- (allows the player to play golf use hole-start signs)
- golf.tp.play
- (allows the player to TP to a hole via command)
- golf.tp.sign
- (allows the player to teleport to their sign)
- golf.tp.sign.others
- (allows the player to teleport other players to their sign)
- golf.create
- (allows the player to create new holes)
- golf.sign
- (allows the player to create/destroy hole-start signs)
- golf.ref
- (allows the player to destroy other players' signs)
Source Code is currently Unavailable
Hey guys, I know we have been dormant for the past year. I really appreciate the love for this plugin (since it's the first plugin I made from scratch till I needed Dante to help with the snow ball sprite). Lots of other focuses that happened (android apps, PC game prototypes, real work, moving, getting ready for my wedding in a few months, yadda yadda yadda). I just wanted to let you all know we do still exist, and we hope to update our mods in the following couple weeks. No real updates intended yet, just updating everything to 1.6.x.
@lANTHONYl
Presumably, yes, but there are most likely API changes (deprecations) that need to be accounted for.
If you update it just send a pull request and I'll release the new version here. (Or I'll eventually get around to updating it myself.)
Since there are no nms/obc imports i'm assuming this plugin will work regardless of CB version?
The only reason I don't like doing it is that I now have the code on two CVS servers. My own local one & github.
Anyways, here you guys go: https://github.com/Synthlight/Golfcraft
Wanna submit code? Be my guest. Want write access on github or the project here? Email me: [email protected] (I'll respond much faster than a PM)
@FeedDante
There's essentially no reason not to publish the source - most popular plugins do so people can contribute and it only helps them grow.
@avondale1718
Yea, it's been awhile since I did any Minecraft stuff and Jase (who did most of this plugin) sort of stopped as well.
I always 'intend' to update it but I am, well, a procrastinator and so nothing ever happens.
As always bukkit-dev only notifies my (via email) about the initial PM and so I never see the replies till days/weeks later. I remember Jase initially didn't want to make the source public but at this point it's just stagnating.
If you're still interested in the source I'd be willing to throw it up on github or something (it's currently on my own private SVN server) and add you as a maintainer/author here so you can continue where we left off. (I figure on github I can give you write access so we avoid forking/fragmenting things.)
For those looking for this plugin to be updated, it has been quite a while since I've heard from the developers of it. I was trying to get in touch with them to develop the plugin a little further to optimize it for a server dedicated to golf. They initially responded to one or two messages, but didn't seem too interested to support their work further. As such, with almost a year of no replies, I've started this thread on the bukkit forums requesting a new plugin. Please follow the link and support it if you are interested. Also, spread the word if you can!
http://forums.bukkit.org/threads/better-golf.146831/
If anyone is interested in the work done on my server in the past year, I'm more than willing to host private guests. We have built, landscaped, and decorated 4 18 hole layouts, as well as practice facilities, a tutorial course, a Par 3 course, clubhouses, and other bits and pieces to make it feel like you're really playing world class golf courses. Please send me a message if you're interested in visiting and I'll be happy to set it up!
Bump for update.
Is this going to be updated? I would love to see this updated... I would also like to see a version that is more for minigolf. Hope to see this updated :D funisfun8
I'd like to second Hi5TBone. This plugin works with CB 1.4.7-R1.0. If I may make a few requests. First, to add plugin awareness when the ball falls out of the world. Behavior similar to Mario Golf would be expected. Or just make it so players have to shoot again from the same place as when the shot was taken and the ball went out of bounds. Second, as well as displaying how many meters the ball has traveled away from the player, display how many meters from the hole the ball is. Thirdly, multiplayer support would be cool. The plugin would control who shoots when and that would be determined by who is farthest from the hole. I am available to test in my free time (usually a few hours nightly) if you need just PM me. I look forward to an update soon. :) Thanks for this awesome plugin!
UndefinedDecoder
Everything is Working Fine! Me and my Staff Really like this plugin We have been looking for a Golf Plugin Forever! No Crashes Complaints or Bugs to Report
Is there a command to remove holes ?
@turkey2349
I'll add it to the list.
i was wondering if you could add where if a player leaves the server while playing golf it takes them out of the golf round? it get annoying when signs are left on my server by people who leave the round without finishing
I'm working on setting up permissions for a public server. I can get so a golfer can simulate golfing and tp to a hole, but for some reason the start signs for holes won't work. I've allowed tp.sign, tp.play, .play, and .spectate in the permissions config. do you think this is an issue with my permissions plugin or with golfcraft?
@FeedDante
I didn't notice the requirements for Java 7 in the details of the plugin, sorry. I have no choice as to which Java version my host runs (Elite Hosting), but I do know we are running 1.6 and they have no plans to change, so I guess your plugin is out for me. Thanks anyway.
@GumbyDammit
This is not a problem with the plugin, it's a problem with the execution environment.
"Unsupported major.minor version 51.0" (Google would've solved your problem already) means that you're running the server with Java 1.6
This plugin requires Java 1.7; run it with 1.7 and the problem will go away.
If you have 1.7 installed then check the run.bat file you use to start the server as I would guess that it points directly to the 1.6 exe.
I just tried this wit 1.3.2-R0.1 and it barfed out with a "Unsupported major.minor version 51.0" error. Here is the entire text of the error:
2012-09-25 09:08:26 [SEVERE] Could not load 'plugins/Golfcraft-1.5.5.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: musaddict/golfcraft/Golfcraft : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198) at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50) at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.UnsupportedClassVersionError: musaddict/golfcraft/Golfcraft : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144) ... 9 more
when will u make it so we can delete holes
@Etsija
Yes, yes there are. And thank you for your help in reporting them. I just haven't had the time to work on this yet.
Don't worry, this isn't abandoned or anything like that; it just may take me a while to fix everything.