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

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

     
  1. Offline

    IC3D

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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:

    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:

    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:

    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.  
  3. Offline

    jacob0wnz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    im just guessing but could it possibly conflict with essentials?
  4. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Its supposed to be:
    Code:
    FriendlyFire:
        Allow: false
  5. Offline

    Master Dover

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    then i get this
    Code:
    ERROR:
    
    mapping values are not allowed here
      in "<unicode string>", line 22, column 21:
                FriendlyFire:
                            ^
  6. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This is my config (i lied about the one above i guess):
    Code:
    Messages:
        Hit: You're out!
        GameStart: Paintball has started!
        GameEnd: Game over! %team has won!
    Locations:
        BlueFlag: BlueFlag
        RedDeath: RedSpectate
        BlueDeath: BlueSpectate
        BlueBase: BlueBase
        RedBase: RedBase
        RedFlag: RedFlag
    GameTypes:
        2FlagCTF:
            Hits: 1
            FriendlyFire: false
            Lives: 1
            Ammo: 64
        Elimination:
            Hits: 1
            FriendlyFire: false
            Lives: 1
            Ammo: 64
    
    I don't remember changing it over to this, but I downloaded paintball and this is what it generated. I think what I did was upload a new version of paintball and then I realized that it was broken, but I forgot to take it down. I'm going to look for the version before this one, because something is clearly wrong :(
  7. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Master Dover @jacob0wnz
    It seems I uploaded a test build (when I was re-designing the entire system). I am working on solving the problem (ie: finishing the next version so it isn't broken), and will upload 1.3 as soon as I am able. It might take a while (few hours, or overnight), and I am sorry for the inconvenience caused.
  8. Offline

    Master Dover

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    no problem, glad we figured it out, im pumped to try it out! thanks for the help
  9. Offline

    1lann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  10. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Directly from source:

    paintball.commands
  11. Offline

    1lann

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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
  12. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Oh well. It does work, I'm not responsible for your permissions failure.
  13. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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 :/
  14. Offline

    landstreet

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    FFS!...
  15. Offline

    daniel13306

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    how to download that sounds
  16. Offline

    echibahn

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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...
  17. Offline

    Bisoum

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This plugin doesn't work. If a player is hit, he doesn't die. What shall I do?
  18. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That just takes the permission away from the player, that isn't the problem.
  19. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It is updated...??
  20. Offline

    ScaryGpro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yes i didnt realize it was updated at the time.
  21. Offline

    ScaryGpro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  22. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It is in the right format.
  23. Offline

    ScaryGpro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  24. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    What version does it say when it is enabled?
  25. Offline

    ScaryGpro

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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;
  26. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You are on 928. This plugin is only working on 860 and below due to API breakages in the newest 2 Recommended Builds
  27. Offline

    Master Dover

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    will test later today and let ya know if i hae any problems, thanks for the fast update!
  28. Offline

    Panicman23

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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"
  29. Offline

    Firefox365

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    do we have to mod client side or can we just play it but with just regular arrows?
  30. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    What craftbukkit build are you on?
  31. Offline

    captainawesome7

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    you can play it with regular arrows
  32. Offline

    isikerkan

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Please Update to CB 935

Share This Page