Sea Battle
Sea Battle
This is a minigame where your goal is to destroy the enemies boat with (snow)balls. After building the arena and the following setup you can start fighting against each other! In version 1.1 economy got added, which means, you can turn this game even into a gambling game :) It works like a jackpot, everyone joins by paying e.g. 10$, but the winner gets everything that got paid back. You'll need Vault for this feature to work.
There's an updated version here, if this one doesn't work for you anymore: http://dev.bukkit.org/bukkit-plugins/minigameslib-seabattle/ Be aware that the commands and permissions changed a bit.
Setup
- Build your arena. Should contain water ;)
- Type in /sb createarena [name] to start the process of saving your arena.
- Next create two spawnpoints for two different teams in the arena: /sb setspawn 1 [arena] and /sb setspawn 2 [arena]
- Create a little lobby and type in /sb setlobby [name] while standing in the lobby.
- That's it!
Now you can create a sign containing the following lines:
- [boat]
- name (your arenaname)
Rightclick this sign and you'll spawn in your arena in a boat and some (snow)balls in your inventory.
As of the 1.5 update you can now add Ammo signs to let people get more snowballs ingame:
- [boat-ammo]
- 64 (this can be any number; it determines, how many snowballs the player gets, 2 stacks would be 128)
These ammo signs are available only once to each player in a game.
Commands
- /sb : Main SeaBattle command
- /sb createarena [name]
- /sb setspawn [number] [name]
- /sb setlobby [name]
- /sb removearena [name] : Remove an arena
- /sb leave : Leave the arena ingame
- /sb list : List all arenas
- /sb reload : Reload the SeaBattle config
- /sb reset [name] : Reset an arena
- /sb recreateconfig : Readds the default config values (doesn't remove arenas)
Permissions
- boatgame.* : all permissions
- boatgame.sign
- boatgame.create
- boatgame.setspawn
- boatgame.setlobby
- boatgame.cleararena
- boatgame.reload
- boatgame.list
- boatgame.remove
Config
- alwaysdropboat: true let boats drop always themselves
- invincibleboats: false invincible boats
- boatlifes: 5 number of snowballs that need to be shot at a boat to crash it
- playerlifes: 2 number of times a player respawns in one game
- use_economy: true true, if you want the gambling feature
- entry_money: 10.0 the entry price, please use numbers with decimal places. Only available, if use_economy is set to true
- maxplayers: 10 defines, how many players can join an arena
- minplayers: 2 defines, how many players are needed to start a sea battle
- starting_cooldown: 11 seconds to wait before an arena game begins
- teams: false enable this to have teams (max 2 teams)! Each team has a different head and uses one of the spawns as teamspawn. Members of a team can't kill themselves.
- itemreward_itemid: 264 Diamonds
- itemreward_amount: 2
- announce_winners: true
- auto_updating: true auto updates the plugin, if there are new releases
- lastmanstanding: true if set to true, the last man standing in a sea battle (if everyone leaves) will win and get the reward
- snowballstacks_amount: 3 the amount of snowball stacks to be added when a players joins a sea battle
- ammo_usage_count: 2 how many times the player can use an ammo sign in one game
Preview
Todo
- extend multiple item prizes with multiple item amounts
- additional weapons like shield in the future
- add MySQL support to store arenas and stats
- min/max players also per arena
- spectator mode
Green bullets are already done, yellow ones are still buggy or being tested, red ones not done yet.
Translation
The Config contains all strings used by the plugin. You can easily change them and the colors to your preferred language.
Additional Info
You can adjust the name of the boatballs by changing the strings.ball_name entry in the config.
You can configure boats to be invincible or drop theirselfs by changing the configfile, too. Defaults:
- alwaysdropboat: true
- invincibleboats: false
- This plugin uses an auto-updater which can be turned off in the config. I don't recommend that for future bugfix releases.
- This plugin also sends things like software information or online player count to MCStats (mcstats.griefcraft.com/plugin/SeaBattle).
Have fun!
Youtube
For those don't want to read all that stuff or don't understand the setup instructions above, here's a youtube video with some gameplay and a tutorial. :P This video is by BukkitHorde, thanks to him for doing that for me!
Here's another review in Spanish:
@matze135
No problem, happy to help ;)
Work now. Thanks
@matze135
Please try to recreate the arena. It seems like the world, where the lobby is, is not saved.
If it doesn't work then, remove the configfile, reload the server and create the arena.
Sorry for my English. Ist a wonderful Plugin. But i have a error /bs leave. On the sign I still stand as Ingame.
2013-08-02 15:51:18 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'sb' in plugin comzeboatgame v1.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:191) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServer.java:527) at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerConnection.java:979) at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.java:890) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:837) at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:125) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:592) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.IllegalArgumentException: Name cannot be null at org.apache.commons.lang.Validate.notNull(Validate.java:192) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.getWorld(CraftServer.java:850) at org.bukkit.Bukkit.getWorld(Bukkit.java:247) at com.comze_instancelabs.boatgame.Main.onCommand(Main.java:222) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more
Who can upload a video tutorial for this, or just a gameplay..
@iDeViLxD
Well right now you can have infinite players in one arena.
Added to Todo list, that's a good idea :)
Are you using Spigot? SeaBattle was running very buggy, when i tried it in spigot, but was acting normal again in CraftBukkit. Also, are any errors coming up? They should be tped, if no errors are in the console.
@weedpandaren
Are you using Linux? And here's the default config:
http://pastebin.com/cyB0JKKC
got an empty config file + error -> craftbukkit 1.6.2-R0.1 Build #2818 please upload sample config
Will you ever have it to where you can have more than 2 people in a lobby at once?
Possibly teams aswell?
Also, found some bugs
- One player doesn't spawn in a boat on first life. - Player sometimes doesn't get tped back to arena once killed once - Once a player has won, they don't get tped back sometimes.
@trisomo
Sorry for any inconvenience, I reuploaded the file with that fixed.
Hi, I tried to test the update but when I want to put the second spawnpoint "First spawnpoint registered" appears, so I can't put a second spawnpoint then i can't play *with my friends :(
@trisomo
Thank you for pointing that out :)
This is fixed now in 1.1.2: Download latest
@Netox005
"Additional Info
To remove an arena, type in /sb removearena [name] .
When joining a game, your xpbar will be used as health indicator for your boat. This may lead to minor xp loss ;) ."
Read please :)
@instancelabs
Yep it also appear when someone else is in the arena so if u know u will lose, u can detroy urself to win x')
Option to remove an Arena?
@trisomo
I knew, that if you are playing alone in an arena and destroy yourself, you win :D Does it also appear when someone else is in the arena?
Hi there, i'm playing with your plugin and there is one little bug : When I destroye my boat I win. I don't know if u already know that but if u don't :D....
@trisomo
Happy to help! Thanks :)
@instancelabs
My Run was working on jre6, I changed it to jre7 and it work !
Thank you for your help :D
Now I can enjoy your beautifull plugin :D
@trisomo
What Java version are you running? I'm compiling my plugins in jre7, but that UnsupportedClassVersionError means, you may have an older version.
@instancelabs
I've just installed Vault. Vault is working but Sea battle doesn't work. Now I have this problem :( :
21:29:25 [GRAVE] Could not load 'plugins\comzeboatgame1.6.2 .jar' in folder ' plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError : com/comze_instancelabs/boatgame/Main : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager. java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager .java:230) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.ja va:239) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:21 7) at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56) at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11 ) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.jav a:106) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java :391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5 82) Caused by: java.lang.UnsupportedClassVersionError: com/comze_instancelabs/boatga me/Main : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader .java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:173) ... 9 more
--------------------------- My server is running CraftBukkit version git-Bukkit-1.5.2-R1.0-27-gdc25312-b2815jnks (MC: 1.6.2) (Implementing API version 1.6.2-R0.1-SNAPSHOT).And yes, it was the first start of this plugin.
Maybe that I badly installed Vault or Sea Battle, I just downloaded them and put in the file Plugins.