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

    1lann

    Hello! I'm encountering permission problems with Paintball. I gave my users the permission node
    - paintball.commands
    but it doesn't work, even if I make them an Admin with access to all commands, it still doesn't work. It only works if the users are ops.
     
  3. Offline

    captainawesome7

    Directly from source:

    paintball.commands
     
  4. Offline

    1lann

    I know, I said that in my quote, it doesn't work
    Here's snippit of my permissions file:
    Code:
        Member:
            default: false
            info:
                prefix: '&9'
                suffix: ''
                build: true
                rank: 2
            inheritance:
            permissions:
            - preciousstones.benefit.*
            - preciousstones.whitelist.*
            - preciousstones.special.*
            - wormhole.use.*
            - wormhole.network.use.*
            - tpp.*
            - essentials.*
            - DisposalChest.*
            - simplesign.*
            - supplysign.*
            - mothernature.*
            - minecartmania.*
            - mobRider.*
            - chaircraft.sit
            - wxw.spawn
            - movecraft.*
            - magiccarpet.*
            - bof.*
            - bog.*
            - -essentials.ban
            - paintball.commands
     
  5. Offline

    captainawesome7

    Oh well. It does work, I'm not responsible for your permissions failure.

    @Master Dover @jacob0wnz
    Hope the new 1.3 version fixes the previous problems. It still isn't compatible with b928 (they broke the most important event), but it does address the issues of configurable hits, lives, ammo, and friendly fire options. I also blocked the arrow damaging, so it should be easy to tell if it is working or not. Hopefully I won't accidentally upload a 1/4 finished build again :/

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

    landstreet

    FFS!...
     
  7. Offline

    daniel13306

    how to download that sounds
     
  8. Offline

    echibahn

    Is it possible you might add more permissions for specific admin commands? Admins/Mods don't want to have to "add player" everytime and host games, users should be able to do it themselves, but having total access to the plugin causes problems since those who know the setup commands can mess up waypoints and other stuff...
     
  9. Offline

    Bisoum

    This plugin doesn't work. If a player is hit, he doesn't die. What shall I do?
     
  10. Offline

    captainawesome7

    That just takes the permission away from the player, that isn't the problem.

    It is updated...??

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

    ScaryGpro

    Yes i didnt realize it was updated at the time.

    But the one permission - -essentials.ban is in the wrong format is it not. It should just be - essentials.ban. I've had issues like that before that messed up the whole permissions or essentials.

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

    captainawesome7

    It is in the right format.
     
  13. Offline

    ScaryGpro

    umm i downloaded and set up the paintball plugin again. I have a problem. When someone gets shot they dont go out. They just lose a little health and you cant shoot them again.
     
  14. Offline

    captainawesome7

    What version does it say when it is enabled?
     
  15. Offline

    ScaryGpro

    ok i got this error when playing paintball. [SEVERE] Could not pass event ENTITY_DAMAGE to paintball
    java.lang.NoSuchMethodError: org.bukkit.event.entity.EntityDamageByProjectileEvent.getProjectile<>Lorg/bukkit/entity/Entity;
     
  16. Offline

    captainawesome7

    You are on 928. This plugin is only working on 860 and below due to API breakages in the newest 2 Recommended Builds
     
  17. Offline

    Master Dover

    will test later today and let ya know if i hae any problems, thanks for the fast update!
     
  18. Offline

    Panicman23

    How do you work this? I have it set up on my server and when i start the match with no one on the teams its fine bit once there's someone on the team as soon as i start it it say "An initial error occured while trying to preform this command"
     
  19. Offline

    Firefox365

    do we have to mod client side or can we just play it but with just regular arrows?
     
  20. Offline

    captainawesome7

    What craftbukkit build are you on?

    you can play it with regular arrows

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

    isikerkan

    Please Update to CB 935
     
  22. Offline

    captainawesome7

    Nope, waiting for the new 1.7 recommended build.
     
  23. Offline

    litsche

    pls update for 953 ;D plsss
     
  24. Offline

    AlLyBOY

    19:56:10 [SEVERE] Could not pass event ENTITY_DAMAGE to Paintball
    java.lang.NoSuchMethodError: org.bukkit.event.entity.EntityDamageByProjectileEvent.getProjectile()Lorg/bukkit/entity/Entity;
    at me.ic3d.paintball.pbe.onEntityDamageByProjectile(pbe.java:201)
    at me.ic3d.paintball.pbe.onEntityDamageByEntity(pbe.java:389)
    at me.ic3d.paintball.pbe.onEntityDamage(pbe.java:396)
    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:321)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:178)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1190)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1172)
    at net.minecraft.server.World.cleanUp(World.java:1102)
    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)
     
  25. Offline

    captainawesome7

    .....
     
  26. Offline

    litsche

    pls update ?!
     
  27. Offline

    IC3D

    Updated. Please report bugs if you find any (I know u will :/)
     
  28. Offline

    Matje69

    Cant DL, site gives this error:
    Code:
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <Error>
    <Code>AccessDenied</Code>
    <Message>Access Denied</Message>
    <RequestId>6804291EDE0A5B6A</RequestId>
    <HostId>
    vCCLkXhhLeabo8DcTgtbwAxmXj/J4ePacLn0yNVNMTWDcHdralmKV5PSNiqjfi9s
    </HostId>
    </Error>
     
  29. Offline

    captainawesome7

    Re-uploaded
     
  30. Offline

    Rlack

    Would there happen to be a way to either put people in teams randomly as soon as they join, or let the players themselves choose their team? I love the concept of this mod, but I just can't be there all the time, y'know?
     
  31. Offline

    captainawesome7

    I was going to add them in 1.5 but I might hold off to add automatic teams until 1.6. I definitely will have commands to join the team yourself by 1.5 though.
     

Share This Page