[FUN] Paintball v1.2 [1.5.2 R1.0]

Discussion in 'Archived: Plugin Releases' started by captainawesome7, Jul 6, 2012.

  1. Offline

    captainawesome7

    Paintball v1.2
    Paintball is a bukkit plugin that adds a paintball game to your minecraft server. The spout plugin is required, and Spectate is optional. Spoutcraft is also optional, but is highly recommended for the best paintball experience.

    Setup
    1. Download the most recent recommended build here.
    2. Once you put the plugin on your server, download Spout and if you want to, Spectate.
    3. Make a paintball map (read Maps below).
    4. Use /pb ammo to set the amount of ammo players get when the game starts.
    5. Use /pb emptyinv to set multiinv compatibility. It requires the players inventory to be emtpy (in the world that the game starts, not the world they are in before they are teleported)
    6. If you want to use a lobby instead of returning players to their previous location, use /pb uselobby. It will automatically set the lobby to your current location (to make sure the lobby is never null). You can change where the lobby is with /pb setlobby. To teleport to the lobby at any time, use /pb lobby.
    7. Use /pb save to save the configuration file. It saves automatically when the server is disabled, but if the server isn't disabled correctly, you might lose your settings.
    8. You're all set! Scroll down for more in-depth information and features.
    Maps
    1. Use /pb map create <name> to make a new map.
    2. Use /pb map <name> red to set the red spawn.
    3. Use /pb map <name> blue to set the blue spawn.
    4. Use /pb map <name> spectate to set the spectating location.
    5. Use /pb map <name> redflag to set the red CTF flag (you must do this even if you don't plan on playing CTF)
    6. Use /pb map <name> blueflag to set the blue CTF flag.
    7. Save the maps with /pb map save. Only playable maps will be saved.
    8. Use /pb map list to view current playable and unplayable maps. When all locations are set a map will automatically be moved to playable.
    How To Play
    • If you want to play tdm, use /pb tdm <map> (score). If you want to play capture the flag, use /pb ctf <map> (score). Score is optional (how many kills/captures are required to end the game).
    • If you're playing TDM, the rules are simple. Shoot each other.
    • If you're playing CTF, the rules are a bit more complicated. To take the enemies' flag, run up to it (it'll be a block of wool the color of the team) and break the block. Once you break it, you're helmet will be wool the color of the flag you took. To capture the flag, get to within 5 blocks of your own flag (it has to be at base).
    • If you get shot with the flag, you'll drop it where you die. To pick it up/return it, just break the block.
    • When the kill or capture limit is reached, the game will end.
    Spoutcraft
    If you don't have Spoutcraft, you won't have access to the following features:
    • Skins (showing difference between teams)
    • Gun sound effects
    • Gun texture
    • Starting/Ending sounds
    • Texture pack (for snowballs)
    Commands
    • /pb ctf <map> <score> - Start a game of ctf, map and score optional
    • /pb tdm <map> <score> - Start a game of tdm, map and score optional. If score is blank each player will have one life, otherwise each kill will give 1 point to the killing team, and the first team to the score wins.
    • /pb next - Starts the next game in the map rotation
    • /pb join - Puts you on the list of people to play the next game
    • /pb save - Save the configuration file manually
    • /pb ammo - Set ammo
    • /pb emptyinv - Toggle mutliinv compatibility
    • /pb match end <index> - Ends the current game of paintball
    • /pb match list - Shows matches currently in play
    • /pb maprotation - Shows current maprotation
    • /pb maprotation list - Shows all maprotations (do this if the command above says there isn't one)
    • /pb map list - Lists maps
    • /pb map save - Saves maps
    • /pb leave - Removes you from the list of people to play the next game
    • /pb list - List current paintball players or the opt list
    • /pb texture - Sets your current texture to the one used when paintball is played (configurable). This fixes the couple second freeze when the textures change (but snowballs will always look like paintballs)
    • /pb kills <name> - Shows total kills that the player has gotten
    • /pb deaths <name> - Shows total deaths the player has gotten.
    • /pb captures <name> - Shows how many captures the player has made.
    • /pb returns <name> - Shows how many times the player has returned a flag
    Permissions
    Version 0.3 adds permissions in addition to using player.isOp(). Check the list below:
    • paintball.admin - Allows use of /pb admin commands (starting, stopping, force ending, etc.)
    Map Rotation
    Version 0.8 and onward have a map rotation system. The configuration is all in the file, and there will be a tutorial to (hopefully) describe how to set it up. Basically, it'll look like this:
    Code:
    ExampleRotation:
      StartDelay: 45
      Games:
        herpaderpa:
          gamemode: 0
          score: 25
          map: ice
        ctfftw:
          gamemode: 1
          score: 3
          map: ice
      GameNames:
      - herpaderpa
      - ctfftw
    It might look a little redundant (what with the game names being in two places), but that's due to me being retarded and not knowing how to use config.getKeys("path"); Anyways, to use it, just change the gamemode (0 is TDM, 1 is CTF), the score (TDM is kills, but if it's set to -1 each player will have one life, CTF is flag captures), and the map (it has to be a valid map that you already made). Game names can really be whatever you want, it doesn't matter as long as you put them in GameNames as well. The StartDelay is in seconds, and should be more than 10. To set the map rotation in-game, use these commands:
    • /pb maprotation - Shows current map rotation (will be first one in maprotation.yml unless you change it)
    • /pb maprotation list - Shows a list of map rotations
    • /pb maprotation <rotation> - Sets the maprotation to the one specified
    • /pb next - Starts the next game in the rotation
    Configuration
    As stated previously, all most of the configuration can be done in-game. If you want to edit the file, or change the paintball gun texture, texture pack used (to change snowballs), or change the gun sound effect (must be in .wav or .ogg), you have to edit the file manually. Here is the default configuration file:
    Code:
    Downloads:
      TexturePack: http://dl.dropbox.com/u/17402100/SME/paintballtexturepack.zip
      GunTexture: http://i.imgur.com/y93Sv.png
      GunSound: http://dl.dropbox.com/u/17402100/SME/gun.ogg
    UseOptSystem: false
    Skins:
      Red: http://www.minecraftskins.com/newuploaded_skins/skin_2012060716315492515.png
      Blue: http://www.minecraftskins.com/newuploaded_skins/skin_2012060716333238485.png
    MultiVerseCompatibility:
      EmptyInventoryRequired: false
    UseVoteSystem: true
    StartingAmmo: 32
    AutoStart: false
    UseLobby: false
    Video Tutorials
    v0.8 - OUTDATED (open)



    v0.7 - OUTDATED (open)



    v0.6 - OUTDATED (open)




    Changelog
    Version 1.2:
    • Updated to 1.5.2 R1.0
    Version 1.1:
    • Built off of 1.0, so it isn't exactly the same as the old versions.
    • Still can run multiple matches at once
    • Autostart option does matter again. Starts when the set amount of players join the game.
    • If autostart is on, when a set number of players opts in to paintball (value in the config is 'PlayersToStart') the game starts
    • Useopt has to be true (sorry bout that)
    • Statistics with SQLite database. Tracks total kills, deaths, captures, and returns. Commands to access data are /pb kills <name>, /pb deaths <name>, /pb captures <name>, /pb caps <name>, and /pb returns <name>. Caps returns the same thing as captures (obviously). They were broken in 1.0, because I'm dumb. They work now.
    • If you get an error after creating a map and trying to start the game, its because you don't have a valid maprotation yet. Just reload the server after doing /pb map save and it will create an example rotation based on the map(s) you have created.
    • You can use /pb match list to see matches currently going on (just shows index, no details). The index is based on when it started, so lowest is earliest.
    • You can use /pb match end <#> to end a match. If you start a game with one person in it, for example, and it's TDM, you can force a normal game ending.
    • You can use /pb match force <#> to dispose of a match entirely. This just throws out the object, every player will be left where they are without their items and previous locations saved. GUI's will also still be on screen. Use in emergencies when you don't want to restart the server.
    • The start commands were missing from 1.0, I added them back in. Format is the same as 0.9 and below.
    Version 0.9
    • Lobby added (optional)
    • Bugfix for multiworld servers (if you had any errors related to entities and ticks, updating should fix it)
    Version 0.8
    • Auto-Starter added.
    • Map rotations added.
    • A SHIT TON of bugs fixed. Sorry bout all those (there's probably quite a few more)
    • Lives/multiple CTF captures added
    • More GUI stuff
    Version 0.7
    • CTF added, start commands changed.
    • Simple Spoutcraft GUI added
    • Ammo added
    • Map setup changed, need to add red and blue flags to all maps (re-read setup and how to play please)
    • Auto updater re-added (took it off for bukkitdev, forgot to uncomment it), if you run 0.6 it should have told you that an update was available though.
    Version 0.6:
    • Map system added.
    • Vote system added.
    • Added multiverse compatibility check.
    • Letting you know about /pb shotty (gives a shotgun, its been in there for a while). If you have certain anti-cheat plugins it will detect throwing too fast, can't do anything about it.
    Version 0.5:
    • Added team skins (configurable), default are red/blue TF2 scouts with derp faces.
    Version 0.4:
    • As stated previously, the plugin should update itself.
    • Adds a message along the lines of "Reload the server to enable Paintball" (when it autoupdates)
    • Fixed bug where people without spectate would get errors on /pb end
    Version 0.3:
    • Released to the public
    Planned Changes:
    Version 1.2:
    • Re-add voting and life limit (which also makes spectate actually do something, because it's not even being used as of now).
    [​IMG]
     
    Luloak2, darcychou and Jack423 like this.
  2. Offline

    xxxkilldogxxx

    Hi could you add me on skype xXxKilldogxXx is the my name on skype i would really like to get this plugin perfect and i know exactly how you can do it.
     
  3. Offline

    captainawesome7

    no
     
    Luloak2, Predator40 and xereeto like this.
  4. Offline

    md_5

    Spoutplugin required, Spoutcraft optional? Any reason?

    Approved.
     
  5. Offline

    Darthmineboy

    Grammar nazi ....
     
  6. Offline

    Primescore

    Hes a bukkit staff memeber -.-
     
  7. Offline

    mcpixx

    Can you make a tutorial video for this? It would be very helpful ;)
     
  8. Offline

    captainawesome7

    The paintball gun is a custom spout item, and the event is handled with Spout. The client is unneeded because it's all server-side, but you won't get the textures or sounds without it.

    I was thinking about it, but the setup is relatively simple and I don't have an active server to test it on (with a lot of people, I did some early testing on a server but not anymore).
    *Edit*
    By test it on I mean make a video with a few people playing paintball.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  9. Offline

    74mtondreau

    I really love the concept of this! My friend is a huge paintball addict and having this on our server is great. My only issue is that I downloaded and added all the plugins mentioned above, but I still get Flint as the paintball gun. Help please?
     
  10. Offline

    Coops

    Along with all the plugins, you still need a modded client. You can get the one you need here: http://get.spout.org/
     
  11. Offline

    74mtondreau

    Do I install it to the bukkit server as a plugin as well?
     
  12. Offline

    djrazr

    Sometimes user cant shoot each other and
    /PB end throws error... if you dont have that spectate mod...
    org.bukkit.command.CommandException: Unhandled exception executing command 'pb' in plugin Paintball v0.3
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:106)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:172)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NoClassDefFoundError: com/Chipmunk9998/Spectate/Spectate
    at me.captain.paintball.Paintball.end(Paintball.java:362)
    at me.captain.paintball.Cmd.onCommand(Cmd.java:64)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 14 more
     
  13. Offline

    captainawesome7

    I added a check (that I originally put in but forgot to implement lol) so that error should go away when you run the server again and (hopefully) paintball re-downloads itself. You have to reload the server after its auto updated though, so after you reload the server twice it should go away.

    Spout Plugin is required, spoutcraft is optional.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  14. Offline

    74mtondreau

    I added the plugin. How do i put spoutcraft in the bukkit server?
     
  15. Offline

    djrazr

    Well i just added the required plugin..

    Also i have to confirm that there are Problems with

    MultiInv ->
    As people DONT GET THEIR STUFF BACK with this)

    and NoCheatPlus ->
    People cant Shoot always because the rapid shots are restricted throught the "nocheatplus.checks.blockplace.projectile" check.. In order to get this working you have to give the player the right to ignore this check -> You maybe wanna hook up with nocheat plus to fix that :D

    "Spout" is another Bukkitplugin, Spoutcraft is the clientmod which works with it and not what you are searching for. Watch out for Spout as Bukkitplugin and put it into your /plugins folder right along with Paintball. (http://dev.bukkit.org/server-mods/spout/)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  16. Offline

    74mtondreau

    So I'm stuck playing paintball with flint and snowballs?
     
  17. Offline

    Bobbosells32

    Hey, if you ever need to test it on Pandora again youre more than welcome. We recently got a new server with twice as much RAM and there's constantly more players on ;D

    Also, the only way to make it work correctly with Multinv is to add an option in the config that requires an empty inventory to join. At least that's what I've seen with a few other plugins (MobArena, Survival Games, ect.)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  18. Offline

    GoTheRedSox

    this looks like it could be a really nice plugin video?
     
  19. Offline

    captainawesome7

    http://get.spout.org/
    Run that instead of Minecraft and log in. It's a launcher, not a plugin.
    I'll do that with 0.5, but that might not be out for a little while.
     
  20. Offline

    JovisHovis

    How do we know who is on the blue team, and who is on the red team?
     
  21. Offline

    djrazr

    This plugin totally fails!
    15:26:54 [SEVERE] java.lang.IndexOutOfBoundsException: Index: 239, Size: 236
    15:26:54 [SEVERE] at java.util.ArrayList.rangeCheck(Unknown Source)
    15:26:54 [SEVERE] at java.util.ArrayList.remove(Unknown Source)
    15:26:54 [SEVERE] at net.minecraft.server.World.tickEntities(World.java:1162)
    15:26:54 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:558)
    15:26:54 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    15:26:54 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    15:26:54 [SEVERE] Unexpected exception
    java.lang.IndexOutOfBoundsException: Index: 239, Size: 236
    at java.util.ArrayList.rangeCheck(Unknown Source)
    at java.util.ArrayList.remove(Unknown Source)
    at net.minecraft.server.World.tickEntities(World.java:1162)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:558)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    >

    User dont always get flint, user cant always shoot others.. this plugin is a mess!
     
  22. Offline

    captainawesome7

    Um that's a minecraft error, it says noting about paintball...
    Multiinv probably conflicts with Paintball if you start the game when some players are in a different world. Users always get a paintball gun, it is absolutely impossible for a player to show up in a game (without another plugin conflicting) and not have a paintball gun.

    Guess? I'll set custom skins with spout in 0.5

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  23. Offline

    Coops

    ===========================================================================​
    Please read this carefully:
    ===========================================================================
    You need to install these plugins:
    http://dev.bukkit.org/server-mods/paintballl/
    http://dev.bukkit.org/server-mods/spout/
    http://dev.bukkit.org/server-mods/spectate/
    All these links lead to a dev bukkit page. The download button is on the top right of the page.
    ===========================================================================
    You also need SpoutCraft:
    You cannot see the gun and paint balls unless you use a custom client made to add new possibilities. It is called SpoutCraft and works with that Spout plugin you just downloaded. You can get this custom client here:
    http://get.spout.org/
    That link leads to a page with three enormous buttons and you click the button according to your OS or your Operating System.
    ===========================================================================
    If you are confused as to what button to click:
    Windows: .exe
    Mac: .app
    Linux: .jar
    ===========================================================================
    After you have downloaded three plugins and one client. Put Spout.jar, Paintball.jar and Spectate.jar in your plugins folder and restart your server. After you complete this step exit any open minecraft windows you may have open. Now is the time to start up your custom client. Go to where you downloaded SpoutCraft and give it a good double click. Welcome to SpoutCraft! Use this client as you normally would and log in. Enter your server and have some fun with all the new features Spout (the plugin) and SpoutCraft (the client) will bring.
    ===========================================================================
     
    captainawesome7 likes this.
  24. Offline

    JovisHovis

    I would say this is a pretty awesome plugin to be honest :) all it needs is the custom skins, when will 0.5 be out? :)
     
  25. Offline

    beastbucko

    Why no commands work when i download? Add me on skype buckoboy123
     
  26. Offline

    captainawesome7

    now :D

    Probably because you didn't download spoutplugin...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  27. Offline

    Vince

    lol people dont listen xD
     
  28. Offline

    JovisHovis

    woo! works perfectly, so if people want to join my server, will they need spout/spoutcraft?
     
  29. Offline

    Bobbosells32

    They should be able to join the server and play paintball without SpoutCraft but while playing they wont see the custom skins and their gun will be flint while the paintballs will be snowballs.
     
  30. Offline

    QuintenVis

    Hey nice plugin only one question.
    Can you configure to autostart the game? This is a serious question, and if yes than the plugin is much more fun!
     

Share This Page