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
I use ender pearls to play golf. :3
This has been great fun so far. If we could charge a fee to play a hole that'd be sweet too :)
A few times, the game seems to end. We break a sign and just go back to shooting arrows.
Hmm.. some people figured out you can just run to the hole and putt one in for a hole in one..silly cheaters.
Nice ;)
Now this Plugin looks really great, very nice new features, keep up that good Development ;)
The new features are great! Can't wait to use them. I am not getting the errors anymore.
@Imm0rt41
As of right now the only way is to stop the server and remove the entry from the file. Inconvenient, i know. I'm gonna add a remove command in the next update.
how do i remove a hole i created? i made a test one to check it out, and now i wanna remove it
Great plugin I gone test it right now!
In my opinion it would also be great if I could add the possibility to change the messages; I mean to put the messages in the language you want. I think it would also be great if you could add rewards for complete holes or all the holes, it wouldnt be necessary many rewards just some chicken or something like that :)
@Nicomang070
I was long into updating before i saw your bug report, so the error report no longer applied to my code (it gave the wrong lines of code). It's now version 1.3.0. Check to see if you're having the same problem.
This looks really cool ;)
I am getting this problem:
http://pastebin.com/9bHa3jYm
It constantly repeats this error, even without doing any commands.
This will help so much on my golf course I have been creating! I hope you can add a distance parameter when shooting a bow and arrow, to fit different clubs. That would be cool. Also have options for the distance in blocks in the config.
We need a block for "out of bounds", also posted some more suggestions in the forum thread (sorry not sure which one you prefer :D )
Also when landing in rough it should take x amount of power from the next shot, I was hoping for a config for this, and the sand-bunker so that it's different from every server / game :)
Oh and maybe a /tp command to your ball if you can't find it / want to get there easily?
Aaand we need a way to reduce the power of the bow when just shooting normally as you would need to make REAAALLY long fields as it is with the current range :) + It's really easy to "cheat" and just shoot over mountains and stuff, which kinda ruins the part of following a nicely made golf course.
"Second" Aaaaand if you could add just one basic permission it would be awesome, as I plan on this only being available for Donators where normal Members may only watch. Preferably PEX or just vault.
This looks great!
Do you plan to add more content?
Like...
... adding player to a game
... automatic scoreboards
... define holes (startpoint, par and cup)
It would be grwat to creat a huge golf court and play golf with other players :D
@Eliijah
You can build a course with the materials listed above. Other than that, all you need to do is /golf
I will soon be uploading a new version with a teleport command, and forcing the player to not move when they need to hit their ball again.
This is a great idea, and im going to try it out now. Is there some set commands to setting this up?
Nice, perhaps you could add a teleport function to take you where your ball landed? Maybe also have snowballs as putters for short range golfing