[FUN] SoftAir v0.9b - A real AirSoft experience on your bukkit server[1060]

Discussion in 'Inactive/Unsupported Plugins' started by Slash1987, Aug 16, 2011.

  1. Offline

    Slash1987

    [​IMG]

    SoftAir V0.9b


    This plug-in tries to simulate an AirSoft game. Two teams battle one another across a map until one achieves victory. On one side we have the Gold Team, donning a gleaming set of Golden Armor and on the other side we have the Diamond Team, bearing their hardened Diamond Armor. Both teams are equipped with a Toy-Bow and Arrow insuring no real damage occurs. As in any real AirSoft you only need to strike your opponent once in order to eliminate them from the game.

    Features:
    No Damage System during the event . (Just like airsoft\paintball\laser games)
    Bows, Arrows and Armor are added to players when they join.
    The player’s inventory will be stored securely during the event, it will be returned at the end.
    One hit system, when a player gets shot once they will be teleported to where the game begins.

    Request:
    Dear users, don't be afraid to post and inform me of any bugs, errors, issues or ideas. I haven't had many opportunities to test this plug-in thoroughly. I'll be very grateful and you'll be helping me to improving this.


    Installation Guide:
    Just put softair.jar in your plugin folder, start the server and set the spawnpoint for the two teams(CMD: /sofair setSpawn [DIAMOND/GOLD]).

    Update from previous:
    Simply remove the "softair.db" from the bukkit folder

    Commands:
    /softair Help : see in-game help
    /softair opHelp : see admin commands help
    /softair setSpawn [Gold\Diamond] : set the spawn-point of the team (ADMIN COMMAND)
    /softair enable : enable the game (ADMIN COMMAND)
    /softair disable : disable the game (ADMIN COMMAND)
    /softair initialize : delete all configuration (like a fresh install) (ADMIN COMMAND)
    /softair join : join the team with less members
    /softair leave : leave the game
    /softair players : tell how many player in the game and in each team
    /softair ready : tell the plugin that you're ready to play


    Download:
    V0.9b <Edit by Moderator: Redacted mediafire url>
    V0.9b alternative link
    http://www.fileserve.com/file/Gd2TGGr


    Source:
    https://github.com/Slash1987/SoftAir to just look at it or to make fork
    For personal uses, it's included in the .jar

    Know Issues:
    1)Still to find

    Todo list:
    1)Add iConomy and Permissions support(iConomy 80% done)
    2)Waiting for Spout team to add the possibility of create new block/items to make my own SoftAir equipment(to use only in softair game)


    Changelog:
    v0.9b
    1)Fixed the arrow control (now one hit and you're out)
    2)Added chat color code
    3)Some minor bugfix

    v0.8b
    1)Control if there is other player on playerLeave event (and eventually notify victory to the remaining team)
    2)Reinitialize game when all players leave and after a game
    3)Some minor changes

    Show Spoiler
    v0.7b
    1)Fixed the bug that prevent for starting a new game
    2)Added global message when the game is enabled/disabled
    3)Now, after joining, it says to type /softair ready to start the game
    4)On login, player crashed will receive a message telling that all of theyr stuff is been restored
    5)Added initial support for iConomy, but not yet implemented(4 new commands still doing nothing, next release i'll active them. Focused on bugfixing for this release)

    v06b
    1)Fixed an error that prevent the hitByArrow event
    2)Fixed the error that prevent the scheduler to stop and reinitialize the countdown
    3)Added a global message telling who won the game

    v0.5b
    1)Fixed all known bug
    2)Some minor code restyling
    3)Some DB table modified (just delete the old db file)
    4)Added a new command to drop all the tables and create new one

    v0.4b:
    1)Complete code restyling
    2)New DB configuration
    3)Some minor buxfixes
    4)Removed the bug that cause the god mode to be disabled

    v0.3b:
    1) introduction of SQLite DB
    2)Spawn Point saved in the DB
    3)Players inventory saved in the DB to prevent lose of information due to a crash
    4)Restoring of player inventory as they log in after a crash or after they log out during a play
    5)Added the option for the Admin to disable the game
    v0.2b - Added a config file. You don't need to set spawn point everytime
    v0.1b - First Release


    Credits:
    @JDD for English revision
    @Evilhaunting for the testing
     
    Last edited by a moderator: Nov 12, 2016
    halothe23 and Massimo1993 like this.
  2. Offline

    Cdilinkyay

    @Slash1987
    Alright, you could make the village and I'll do the arena.
     
  3. Offline

    Saammyyx

    I made a map for this, i'll post some pics later :)
     
  4. Offline

    Slash1987

    @Saammyyx you're welcome
    Sorry to make you all waiting for a stable release, but i'm working hard to find a workaround to the bukkit bug

    Working on a Time Score Game instead of the oneHitKill system that i'm using now
    You will also have player hit count(who did you hit and how much and how much you've been hitten)

    5 minutes and version 0.9beta will be out.
    Maybe this time everything will work fine.
    in version 1.0beta iConomy support will be fully functional

    For the time score game i'm plannig to make a separate plugin like a laser game, so shoot where you're pointing

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

    TheMaa

    Pm me when you have fixed the error please, I wanna try this plugin:)
     
  6. Offline

    Slash1987

    @TheMaa just fixed and uploaded the new version
    Everyone can try this version, it must be bugfree, if not, report me anything
    Some cool features in the next release

    UP

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

    Reilly

    Still not working... Running the latest version of bukkit and spout
     
  8. Offline

    Slash1987

    @Reilly post me a log or any information about your server.
    I've tested this several times in several server anf everything just work
     
  9. Offline

    TheMaa

    It works fine when I set up a game too, but when I shoot another player I get this error, SoftAir
    java.lang.NoSuchFieldError: PROJECTILE
    at com.slash.softAir.Listener.SoftAirEntityListener.onEntityDamage(SoftAirEntityListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:183)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    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)
    2011-09-07 13:21:06 [SEVERE] Could not pass event ENTITY_DAMAGE to SoftAir
    java.lang.NoSuchFieldError: PROJECTILE
    at com.slash.softAir.Listener.SoftAirEntityListener.onEntityDamage(SoftAirEntityListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:183)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    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)
    2011-09-07 13:21:07 [SEVERE] Could not pass event ENTITY_DAMAGE to SoftAir
    java.lang.NoSuchFieldError: PROJECTILE
    at com.slash.softAir.Listener.SoftAirEntityListener.onEntityDamage(SoftAirEntityListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:183)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    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)
    2011-09-07 13:21:07 [SEVERE] Could not pass event ENTITY_DAMAGE to SoftAir
    java.lang.NoSuchFieldError: PROJECTILE
    at com.slash.softAir.Listener.SoftAirEntityListener.onEntityDamage(SoftAirEntityListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:183)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    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)
    2011-09-07 13:21:07 [SEVERE] Could not pass event ENTITY_DAMAGE to SoftAir
    java.lang.NoSuchFieldError: PROJECTILE
    at com.slash.softAir.Listener.SoftAirEntityListener.onEntityDamage(SoftAirEntityListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:183)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    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)
    2011-09-07 13:21:07 [SEVERE] Could not pass event ENTITY_DAMAGE to SoftAir
    java.lang.NoSuchFieldError: PROJECTILE
    at com.slash.softAir.Listener.SoftAirEntityListener.onEntityDamage(SoftAirEntityListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:183)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    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)
    2011-09-07 13:21:07 [SEVERE] Could not pass event ENTITY_DAMAGE to SoftAir
    java.lang.NoSuchFieldError: PROJECTILE
    at com.slash.softAir.Listener.SoftAirEntityListener.onEntityDamage(SoftAirEntityListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:183)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    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)
    2011-09-07 13:21:07 [SEVERE] Could not pass event ENTITY_DAMAGE to SoftAir
    java.lang.NoSuchFieldError: PROJECTILE
    at com.slash.softAir.Listener.SoftAirEntityListener.onEntityDamage(SoftAirEntityListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:183)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    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)
    2011-09-07 13:21:08 [SEVERE] Could not pass event ENTITY_DAMAGE to SoftAir
    java.lang.NoSuchFieldError: PROJECTILE
    at com.slash.softAir.Listener.SoftAirEntityListener.onEntityDamage(SoftAirEntityListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:183)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    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)
    2011-09-07 13:21:08 [SEVERE] Could not pass event ENTITY_DAMAGE to SoftAir
    java.lang.NoSuchFieldError: PROJECTILE
    at com.slash.softAir.Listener.SoftAirEntityListener.onEntityDamage(SoftAirEntityListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:183)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    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)
    2011-09-07 13:21:08 [SEVERE] Could not pass event ENTITY_DAMAGE to SoftAir
    java.lang.NoSuchFieldError: PROJECTILE
    at com.slash.softAir.Listener.SoftAirEntityListener.onEntityDamage(SoftAirEntityListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.java:649)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.EntityArrow.m_(EntityArrow.java:183)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    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) and the game does not end.
     
  10. Offline

    Slash1987

    @TheMaa
    I think it's caused by a different build of bukkit.
    Make sure You're using the craftbukkit 1060 and everything should work fine
     
  11. Offline

    Evilhaunting

    Kk now that I know the plugin works properly I'm going to make a video out of it. P.S slash your welcome to help us make the video infact that would make it a lot epicer :p!
     
  12. Offline

    Slash1987

    evil i'll join the serven in few minutes
     
  13. Offline

    Obi014

    the plugin is great but when i start the secound round the server shut down and the plugin broken there stand ''an internal Error occured while attempting that command ...
     
  14. Offline

    Slash1987

    @Obi014 could you post me a log? use pastebin and send me the link
     
  15. Offline

    Jake Buly

    Everything works, but no one is ever sent back to the spawn? HELP
     
  16. Offline

    Slash1987

    For now it's just one hit, get out from the game. I'll implement a Score System soon
     
  17. Offline

    AwesomeCakes

    Awesome plugin man, keep it up :)
    There are a few things that could improve it of course (such as a score system) but it seems that you've got it all under control.
    I've created a stand-alone test server on 82.24.225.213, feel free to check it out (it's usually quite dead) D:
     
  18. Offline

    Obi014

  19. Offline

    Slash1987

    @Obi014 it has nothing to do with my plugin. It's an error on the server shutdown. Maybe a corrupted player data? It's always the same player that cause the error?

    @AwesomeCakes every idea is accepted here. Just post your's and I will do my best to implements them
     
  20. Offline

    Jake Buly

    Yes, but players get hit and nothing happens...Don't get out or removed from game.
     
  21. Offline

    Slash1987

    The first time i've encountered this issue was with bukkit 1000, that uses another way to catch Arrow hit. So, try upgrading to 1060

    Working on Spout, Permission, iConomy and different game types. Also restructuring the code.
    Remember to run this plugin only on bukkit 1060, otherwise it doesn't work

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

    Slash1987

    Due to a University Exam, i'm working less on the plugin. Be patient.
     
  23. Offline

    Kirbyflys

    Works fine on 1118!

    Please add a config file for custom messages, custom ammo count, and custom hits (How many hits until you're out)

    Other than that, GREAT plugin!
     
  24. Offline

    Slash1987

    I'm adding a Localization File, a score game and also a team game. So everything you told could be possible in the next release.
    Talking about the ammo count, I was thinking to add some kind of recharger(a sign) that give you your initial ammo amount when you run out of ammunition. But also a custom ammo count could be achieved.
    I'll not add a config file, everything is set in game with commands(so, no need to restart the server to change configuration)
     
  25. Offline

    Kirbyflys

    Alright, sounds good.

    The ammo count isn't really needed. 4 stacks of 64 arrow's actually seem like more than enough.

    Now if you're planning to make a Team Death Match type of game where one team has to get a set number of kills(e.g. Team Diamond or Team Gold have to get 20 kills in order to win. The amount of kills needed to win should be configurable), then the ammo recharger would be nice.

    People on my server LOVE this plugin! Keep up the good work!
     
  26. Offline

    Slash1987

    @Kirbyflys Team Death Match it's either score and time game, and everything would be configurable. So don't worry. Now that exams are end, I will continue coding
    I'll post the new release when the new RB is released (with support for 1.8)
     
  27. Offline

    Kirbyflys

    @Slash1987 Awesome! Sounds good! =D

    You also need to disabled Team Killing. It's annoying for my own teammates to shoot me or their other teammates.

    Also, there is a glitch where sometimes after the game starts, the countdown keeps repeating itself. I am forced to reload the plugin for it to stop.
     
  28. Offline

    aflyingiPh0ne

    I have the permissions set up and everything but every time I type in a command to join or anything it just gives me the feedback for "/softair opHelp". Any ideas?
     
  29. Offline

    Slash1987

    it's a random error i'm working on for the next release. But unfortunately it could take a bit longer than expected to complete this. So just have some patience please
     
  30. Offline

    aflyingiPh0ne

    I will, thanks for the great idea :) I will make sure to keep an eye out for it!
     
  31. Offline

    heliastein

    will u implement iconomy soon?
     

Share This Page