Inactive [FUN] Paintball v1.4 - Paintball Wars! Now with CTF! [953]

Discussion in 'Inactive/Unsupported Plugins' started by IC3D, Jun 18, 2011.

  1. Offline

    IC3D

    Paintball - Configurable Paintball Battles!
    Version: v1.4
    This is a fairly complicated plugin that allows you to have paintball (with a slight client modification) battles, or if you don't want your users to play paintball, its basically bow tag. The games end when all players are out, and the winner is the team with the last man standing.

    Features:
    • Play paintball!
    • Configurable ammo
    • Configurable messages
    • Configurable team bases
    • Configurable team spectating areas
    • Inventory saving!
    • Killfeed
    • Capture the flag and elimination game modes!
    Commands:
    Commands (open)

    The Permissions node for all commands is paintball.commands
    • /pb help <cmd> - Show command specific help
    • /pb base <red/blue> - Set the specified team's base (where they are teleported when the game starts)
    • /pb spectate <red/blue> - Sets the specified team's spectating area (where they are teleported when they are hit)
    • /pb add <player> <red/blue> - Add the specified player to the specified team
    • /pb remove <player> - Remove the specified player from the team they are on
    • /pb switch <player> - Switches the player's team
    • /pb tdm - Starts an elimination game! Teleports players to their team's base, saves their inventory, and puts 1 gun and the specified ammo in their inventory
    • /pb ctf - Starts a capture the flag game! Teleports players to their team's base, saves their inventory, puts 1 gun and the specified ammo in their inventory, and sets the flag location to the team color wool.
    • /pb end - Ends the game early! Gives players their original inventories back.
    • /pb clear - Clears all paintballs (arrows) from the ground
    • /pb empty <red/blue> - Clear the specified team of all players
    • /pb flag <red/blue> - Sets the flag location for the specified team

    Configuration:
    config (open)

    A file called config.yml will be created at /plugins/Paintball/config.yml. Some of the values are configurable in game, and the others need to be edited directly in the file. It looks like this:
    Code:
    Messages:
        Hit: You're out!
        GameStart: Paintball has started!
        GameEnd: Game over! %team has won!
    Locations:
        BlueFlag:
        RedDeath:
        BlueDeath:
        BlueBase:
        RedBase:
        RedFlag:
    GameTypes:
        2FlagCTF:
            Hits: 1
            FriendlyFire: false
            Lives: 1
            Ammo: 128
        Elimination:
            Hits: 1
            FriendlyFire: true
            Lives: 1
            Ammo: 128
    
    The messages, ammunition, lives, hits, and friendly fire has be edited directly. The locations are set with the ingame commands.

    To have a paintball gun clientside:
    client (open)

    To mod your client, all you have to do is edit your texture pack's image at minecraft.jar/gui/items.txt. Just change the bow to a paintball gun, and the arrow to a ball shape. I would do this, but my image editor for .png cant handle blank space :(
    If you make your own items.png, please PM me with a download link so other people don't have to edit it themselves.
    Then, follow these steps:
    1. Download Sound Mod Enabler here by epinull
    2. Unzip the file that you downloaded
    3. Move cx.class to your minecraft.jar
    4. Move DO_NOT_UPDATE.txt to .minecraft/resources
    5. Download bow.ogg and drr.ogg
    6. Move both of the above files to .minecraft/resources/newsound/random
    7. Your done!


    Downloads:
    The source code is included in the .jar (/me/ic3d/paintball/)

    Planned Changes
    • More game modes (what would you like to see?)
    Changelog:
    Version 1.4
    • The long awaited 953 update (sorry I was busy!)
    • PLEASE report bugs as I am sure there are tons :)
    Version 1.3
    • Fixed the plugin. During later 1.2 I accidentally uploaded a test build without realizing it, and it messed up the plugin.
    • Changed /pb start to /pb tdm, because its a team deathmatch
    • Added per-game type lives, ammo, friendly fire, and hits
    • This was hastily coded at 2:20 AM, so if there are any bugs (there are bound to be a bunch) please let me know as soon as possible!
    • Blocked paintball (arrow) damage (when game is on and you are playing)
    Version 1.2
    • Added a two flag capture the flag game mode! The game mode works like this:
      • Use /pb flag <red/blue> to set the team flag locations (should be near their base)
      • Use /pb ctf to start a capture the flag game
      • Run to the other team's flag and right click it to grab it, the block should turn white and give you one flag
      • Run back to your flag and right click it, you have to have the enemy's flag somewhere in your inventory
      • You win!
    • Added a /empty for easier team clearing
    Version 1.1
    • Fixed everything. There were a million things wrong with the first one.
    • Cleaned the code
    • Better kill handling
    • added killfeed
    Version 1.0
    • Secret Bugfixes!
    • Original Release!
    Credits:
    • @captainawesome7 - All coding
     
    jacob0wnz, mathiash98 and kahlilnc like this.
  2. Offline

    DreadKyller

    @XRiflesX post the entire error log because it holds valuable info like the line number and where the error ccured in the code. Without it it's hard to find the cause.
     
  3. Offline

    mathiash98

    I made a Texture for the Paintball (It's actually a real scaled Paintball)
    Top:
    Arrows
    arrows.png
    Buttom:
    Item
    items.png
     
  4. Offline

    colin8696909

    can you just make regular guns.
     
  5. Offline

    captainawesome7

    Its just a texture change to make the bow look like a gun, but the bullet (arrow) won't be going fast enough.
     
  6. Offline

    echibahn

    I'm using unsupported bukkit 873. Not really a big problem, but FYI I get this error with your plugin and I havent even started setting it up yet.
    Code:
    23:52:20 [SEVERE] Could not pass event ENTITY_DAMAGE to Paintball
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
            at java.util.ArrayList.RangeCheck(Unknown Source)
            at java.util.ArrayList.get(Unknown Source)
            at me.ic3d.paintball.pbe.onEntityDamageByProjectile(pbe.java:38)
            at me.ic3d.paintball.pbe.onEntityDamageByEntity(pbe.java:274)
            at me.ic3d.paintball.pbe.onEntityDamage(pbe.java:281)
            at org.bukkit.plugin.java.JavaPluginLoader$51.execute(JavaPluginLoader.java:598)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at net.minecraft.server.EntityArrow.o_(EntityArrow.java:180)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1116)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:62)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1098)
            at net.minecraft.server.World.cleanUp(World.java:1075)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:395)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  7. Offline

    captainawesome7

    Yeah I noticed this earlier, I'm pretty sure I can fix it in about 1 minute. Check back soon.

    @echibahn Re-Download please. I just did something dumb with an ArrayList, its all good now.

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

    robbert777

    a video please? :)
     
  9. Offline

    captainawesome7

    I have been unable to make a good te ture pack to make the bow look like a paontbball gun.
     
  10. Offline

    Tim069

    Could you please make configurable the amount of arrows needed to kill someone ? We want to put 10 arrows= kill. :)
     
  11. Offline

    captainawesome7

    I'm working on re-designing the system for a 3rd time. I am going to make a configurable amount of hits and lives that differ per-game mode.
     
  12. Offline

    Tim069

    Just get the ennemies inventory when I won CTF by capturing.
     
  13. Offline

    captainawesome7

    Yeah i think I put the wrong player variable in there.. I'll fix it

    re download for the fix

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

    mathiash98

    Here's some tutorials:D


     
  15. Offline

    echibahn

    Just loaded bukkit 928 and my console gets flooded with this error :(
    Code:
    21:15:25 [SEVERE] Could not pass event ENTITY_DAMAGE to Paintball
    java.lang.NoSuchMethodError: org.bukkit.event.entity.EntityDamageByProjectileEvent.getProjectile()Lo
    rg/bukkit/entity/Entity;
            at me.ic3d.paintball.pbe.onEntityDamageByProjectile(pbe.java:124)
            at me.ic3d.paintball.pbe.onEntityDamageByEntity(pbe.java:212)
            at me.ic3d.paintball.pbe.onEntityDamage(pbe.java:219)
            at org.bukkit.plugin.java.JavaPluginLoader$55.execute(JavaPluginLoader.java:628)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at net.minecraft.server.EntityArrow.o_(EntityArrow.java:181)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1142)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:49)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1124)
            at net.minecraft.server.World.cleanUp(World.java:1101)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  16. Offline

    captainawesome7

    The API broke the onEntityDamageByProjectile in 928
     
  17. Offline

    jacob0wnz

    when i play it, all works except the killing, it just normal hits, and i start the game correctly, but its not a one hit kill, its just normal health, and they do not even teleport to the spectate area, they just die and go to spawn, i have no idea what i am doing wrong? halp?? btw the config file is the default except for the custom locations for the flags, bases, ect.
     
  18. Offline

    captainawesome7

    Are you using b928?
     
  19. Offline

    jacob0wnz

    i dont think so, i dont even know what that is, but no,

    oh yess lol srry, i am using 860

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

    captainawesome7

    What plugins are you using?
     
  21. Offline

    jacob0wnz

    im and using...
    adminchat
    antixray
    autoannouncer
    dynmap
    essentials
    essentialschat
    essentialsgeoip
    essentalsProtect
    EssentialsSpawn
    All Falsebook's
    founddiamonds
    heroicdeath
    ichat
    lazyroad
    lockette
    mobarena
    multiverse
    nscommands
    -paintball-
    permissions
    pvptoggle
    worldedit
    worldguard
    xAuth
     
  22. Offline

    captainawesome7

    I'm guessing it's pvp toggle, anything that modifies onEntityDamage could make it not work right. Try changing the name of the plugins folder (temporarily uninstalling all plugins) and only putting Paintball in. See if it works.
     
  23. Offline

    jacob0wnz

    i just deleted pvp toggle and it still doesnt work
     
  24. Offline

    captainawesome7

    I didn't say it would. I have no idea why it isn't working for you, and I can't really help you.
     
  25. This is cool, what bukkit build you recommend ?
    II should make a paintball server I think :D
     
  26. Offline

    landstreet

    how do you win the ctf without killing the other team?
     
  27. Offline

    jacob0wnz

    man this is making me mad, i have been trying to get this too work for sooooo long. i took out every plugin so none are conflicting with it. EVERYTHING works great EXCEPT 1 hit kill, i really dont understand why but if anyone has any ideas at all then let me know plz :D thanks!
     
  28. Offline

    captainawesome7

    you right click the enemy flag, which gives you the color wool block, and then you right click your own flag. The person that stole the flag has to be the one to capture it as well.
     
  29. Offline

    Master Dover

    okay, it all works, i have it set up completely right all the spawns are correct BUT when an arrow hits the person it just takes away from there actual health, and they aren't sent to the spectate area... any help?
     
  30. Offline

    captainawesome7

    What build are you using?
     
  31. Offline

    Master Dover

    oh sorry, im using 860
     

Share This Page