BasketballCourts
BasketballCourts
BasketballCourts
"Who doesn't like a good game of basketball"
- Some person -
Description
Description
This plugin allows users to create basketball courts and play games on those courts. It's a pretty simple concept, really.
Notice
Notice
As this is my first ever Bukkit plugin, I'd say I'm quite proud of this one. Please feel free to leave comments, suggestions, and advice. I have enjoyed working on this project, and I hope this opens up more opportunities for me to write plugins in the future. Thanks to any who have answered questions and helped solve problems so far, and thanks in advance to those who will help me out further down the road! Also note that this plugin is not perfect by any means, but works fine if you use it correctly.
Command Instructions and Features
Command Instructions and Features
- A user (with permission
bb.) can create a basketball court with the command*/bb create <court_name>.- The court is automatically built.
- The court's center is located at the player's feet.
- The court is rotated to player's facing.
- Courts cannot be broken by hand, nor can blocks be placed on them (unless you use WorldEdit).
- All blocks within 6 blocks above the court's floor will be removed.
- The court will not build if another court is too close or if a court with that name already exists.
- The court is automatically built.
- A user (with permission
bb.) can delete an existing basketball court with the command*/bb delete <court_name>.- The court will automatically be removed.
- Previously existing blocks are not restored.
- A user can view a list of existing courts with the command
/bb list.
- A user can join a game with the command
/bb join <court_name>.- Courts have 6 player slots.
- A player cannot join a full court.
- A player's inventory, location, and other important data is stored.
- A player is automatically placed on the team with less players.
- The player's helmet is set to a block of wool representing the team color.
- Users can only leave a court by using the command
/bb leaveas no other commands will work while in a basketball game. - If a user quits while in a game or the server shuts down, don't worry. Players are all made to leave the court and have their data restored.
Playing the Game
Playing the Game
- A game automatically starts once a second player joins a court.
- A user (with permission
bb.) can force-start a game with the command*/bb start <court_name>.
- A user (with permission
- All players on a court will see that court's scoreboard.
- When a game starts, a snowball is dropped at center court.
- Whoever picks up the ball has the ball. Makes sense.
- While holding the ball, sneak to charge the power meter.
- Right click while charging to shoot.
- If you are not sneaking the ball will just fall at your feet.
- If a player has the ball and they leave the court or quit, the ball is dropped at their location.
- Any items picked up on the court will be removed if they are not the game ball.
- While holding the ball, sneak to charge the power meter.
- The ball will not break (kinda) when it hits an entity, so if it is still in play, it can be picked up again.
- If the ball is thrown out of bounds, everyone will be reset and the ball will drop at center court.
- If the ball (dropped item) is stuck somewhere where nobody can reach, don't worry. It will reset itself at center court after 7 seconds.
- Hit (left-click) the ball holder for a chance to knock the ball away from them.
- When a ball makes it into a goal (hopper), the score is updated, players are reset, and ball is dropped at center court.
- When a team reaches 21 points, game is over!
- Players are returned to their previous state upon game end.
- A court's scoreboard is reset when a game ends or all players leave the court.
Permissions
Permissions
- bb.
*- Basketball admin permission - default to ops
TODO
TODO
(Items that have bee crossed off have been fixed in versions waiting for approval)
- Add options for configuration
- Default max-slot size
- Prizes (with economy)
- Default max score
- etc.
- More less important stuff
-
View User Profile
-
Send Message
Posted May 3, 2014@phillipkdick
Also, these errors are most likely caused by compatibility problems between the plugin and CraftBukkit. This plugin does not (yet) work well (or at all in many cases) with CB 1.7.x. However, I am working on rebuilding, so be on the lookout for an update soon.
-
View User Profile
-
Send Message
Posted Apr 11, 2014Hello, everyone! For those who have been having trouble with the plugin, I apologize. I have been extremely busy with work the past few months, and considering I just made this plugin as a hobby, I haven't had much time to push any updates. However, I am currently working on a complete overhaul of the BasketballCourts plugin for 1.7 clients/servers. Again, I'm truly sorry for the wait. If things go as I plan, a fresh plugin with tonnes of new features and fewer bugs will be released in time for summer. So don't worry, I have not abandoned this project, nor do I plan on doing so anytime in the near future.
travelingdp
-
View User Profile
-
Send Message
Posted Mar 1, 2014@phillipkdick
I'm having the same problem... Could another plugin be interfering with this one?
-
View User Profile
-
Send Message
Posted Jan 30, 2014I tried this plugin later and make the courts perfect, but when the ball leaves this it crash and not respawn at center of court.
When start the plugin i have this error in console
[18:33:09] [Server thread/INFO]: [Basketball] Enabling Basketball v0.1.6 [18:33:09] [Server thread/ERROR]: Error occurred while enabling Basketball v0.1.6 (Is it up to date?) java.lang.NullPointerException at com.yesluh.basketball.Basketball.onEnable(Basketball.java:138) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:350) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:384) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:300) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:282) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.m(MinecraftServer.java:342) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.g(MinecraftServer.java:319) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.a(MinecraftServer.java:275) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:175) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit-dev.jar:git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2995jnks]
-
View User Profile
-
Send Message
Posted Jan 16, 2014@Hopp00
Are any errors being logged? Unless I can see an error message, it'll be hard for me to figure out what's causing the problem, especially since I can't reproduce the problem.
-
View User Profile
-
Send Message
Posted Jan 9, 2014Plugin doesn't work at all. It makes the courts, but when trying to play, it crashes. Please Fix. Thanks!
-
View User Profile
-
Send Message
Posted Jan 1, 2014Next big update will will be for the first recommended 1.7 build. Will include some new features! I'm also working on a couple huge projects, so be on the lookout for updates on those! I won't have as mush time to work on this plugin because of my other projects, however, I will never stop working on BasketballCourts as long as there are bug/new features that can be fixed/added.
-
View User Profile
-
Send Message
Posted Dec 13, 2013Small fix just uploaded. Should be up soon.
-
View User Profile
-
Send Message
Posted Dec 11, 2013@Sparkyau
I had some things come up, but I'll have it ready by this weekend :)
Sorry for the wait!!
-
View User Profile
-
Send Message
Posted Dec 9, 2013is it ready soon? i love this plugin and want the updates xD
-
View User Profile
-
Send Message
Posted Dec 8, 2013Posting a new update later today. It's should be up in the next day or so.
Fixes:
-
View User Profile
-
Send Message
Posted Dec 5, 2013@Brojman
Do you use any plugins that prevent item drops from happening in certain areas? If so, that might cause the problem. If not, check your console/log to make sure no errors are being logged. If you get any errors, please post them here. I can't seem to replicate this problem myself, but I might be able to figure it out if there is an error. Thanks! :)
-
View User Profile
-
Send Message
Posted Dec 5, 2013I really like the feel of your courts and this looks really nice, but when i try to shot the (snow)ball just breaks on the back board. Also the ball doesn't come back to the court(when u miss the goal*never said I was any good :P*). When u get some of the bugs fixed this will definitely go on my server!!! Good job so far! Keep it up :)
-
View User Profile
-
Send Message
Posted Dec 3, 2013@Sparkyau
Are any errors being logged when you try to shoot the ball? Do you have any other plugins that may interfere with throwing snowballs?
Also, as far as the creeper thing goes, make sure you are using v0.1.4. It should work fine in that version. If not, I may have compiled it wrong. In any case, I uploaded v0.1.5 late last night, so it should be up later today or tomorrow.
-
View User Profile
-
Send Message
Posted Dec 3, 2013well i have some issues, when throwing hte ball, it disappears....
Creepers did explode the Court and the ball doesnt reappear
-
View User Profile
-
Send Message
Posted Dec 3, 2013thanks for explaining it :) i'll try it out on my server :)
-
View User Profile
-
Send Message
Posted Dec 2, 2013looks greate! good work
-
View User Profile
-
Send Message
Posted Dec 2, 2013@Sparkyau
If you are talking about this statement, I think you misunderstood. This is just saying that if a player quits Minecraft while in a court, they will be removed from a court if they are on one (to free up a slot so another player can join). Also, if the server op stops the server or if the server crashes (for reasons unrelated to my plugin), any players that are on courts will be removed in that same manner. Nothing in my plugin should cause the server to shut down. However, if my plugin is crashing your server, let me know.
-
View User Profile
-
Send Message
Posted Dec 2, 2013Thanks! :D I have up to v0.1.4 uploaded, just waiting for approval. What are you referring to by the server shutdown on quit? I'll try to look into it if I can figure out exactly what it is.
-
View User Profile
-
Send Message
Posted Dec 2, 2013looks like a really cool plugin :D i might consider it for my server if you fix the server shutdown on quit :)