Giter Club home page Giter Club logo

survival-games's Introduction

Survival Games by Double0negative

Survival Games is a plugin that has the aim of creating a fully automated hunger games style experience. The plugin was created to be simple to use, and to be easily setup on any type of server, no matter the size or type! Survival Games provides a way for your server to have a full fledged, fully automated hunger games experience for any player. For more information on the aim of the plugin, watch popular youtuber AntVenom play Survival Games HERE.

Requirments

Before installing this plugin, a few things are required.

  • WorldEdit
  • MySQL Database (optional) - If you wish to use stats, you must have an SQL database.

Conflicts

  • Any plugin that modifies damage amounts by applying more damage can sometimes cause issues and make the player actually die (ie McMMO).
  • Some locking plugins such as LWC have been reported to have issues with the lobby signs, but should work normally if protection is turned of for those signs.
  • WORLD PORTAL will make this plugin completely break if the lobby is not in a world that is loaded at start!

Features

This is not just another Hunger Games plugin. This plugin aims to bring a fully automated, fully fledged gaming system to your server.

  • Full automation
  • Automatic arena regeneration
  • Chest reset / randomly filled chest
  • Auto game start
  • Spectators
  • In-game Lobby with real-time player and arena stats
  • Multiple arenas
  • Simultaneous games
  • Web-based stats
  • Easy arena setup
  • Per Arena Permissions
  • Lightning and thunder on player deaths (Simulate cannons)
  • Multiworld Support
  • Events API - Economy, Kits + More! Plus many, many more features included in this plugin!

Next Update

  • All known bugs, fixed.
  • Kits menu & config
  • Death match
  • and more! Note: Devs and important people of this plugin have colored names on lobby signs

Read Before Posting!

  • A full tutorial on kits, economy and new features will be released soon!
  • /sg setlobbywall was changed to /sg addwall in versions 0.5.0 and above!
  • Need support? Find me on IRC @ irc.esper.net #survivalgames or use the webchat: http://webchat.esper.net/?channels=survivalgames
    New Permissions:

If you have for example 6 arenas, and you want every player to be able to join all arenas, give each rank the following permissions:

  • sg.arenas.join.<arena#> (Replace <arena#> with the arena number.)
  • sg.arena.join
  • sg.arena.vote
  • sg.lobby.join

survival-games's People

Contributors

adamrjonesay avatar blha303 avatar ciyoulater avatar derflash avatar necrodoom avatar skmedix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

survival-games's Issues

Teleportation bug when a player is killed by arrows

When a player is killed by arrows is not properly teleported to the lobby and the arena does not end until that player does not leave the server. While the player is buggy in the teleport event it appears as offline.

/sg delwall

Delete any walls in current worldedit selection. I hate to mess with system.yml everytime when my lobby signs goes bad.
Or properly overwritte old signs with /sg addwall instead the way it works now.

/sg addwall

This command has been replaced by /sg addwal
Even if I try to use /sg addwall 1. Build #23.

Change chest rarity

All chests should be as now but some of them could be changed (marked with command) to have more/less powerful items than others.

Missing messages

Build #30.
Missing:

  • "&cNo games to join
  • [SG] No games to join"
  • Joining arena
  • You have a %% second grace period!

Isn't working even if changed in messages.yml:

  • There are %% players remaining!'
  • Grace period has ended!

Sign spam protection (?)

Dozens of players are clicking auto-assign signs without any cooldown. Isn't it impacting on perfomance? May be it would be better to somehow prevent it?

PlayerJoinArenaEvent Is wrong handled.

I really think this event is called to early in the code. So methodes like "removePlayer(player, true)" are useless to call in other plugins that would like to use the api.

Problem with auto-start-players

Just updated to the last dev build (not sure which one I had before, sry) and since then the auto-start-players setting seems to be bugged.

We've created an own addon plugin which is resetting the arena maps (almost like MultiVerse-Adventures does, but a little different so it does not create any lags) and the problem seems to start when the arena was resetted once.

What you could do do reproduce (and what the plugin just does automated):

  • restart the whole server
  • join a game -> it should not start automatically when there are not enough users and you need to vote
  • disable the game
  • unload the map with Multiverse
  • reload the map
  • reenable the game
  • this time when two users join the game it starts automatically with a 5 seconds countdown

I've seen in the code that this 5 seconds countdown should only be used when the arena is already full, but for sure it isn't. So my guess would be that somehow on world reload (game restart?!) those two values are 0...

Hope that helps to find an idea what could be wrong.

To see the "bug" in action, feel free to join minecraft-sg.de for sure.

Thanks for the good work!

Remove Potion Effects

As the title suggests, remove potion effect on join.
My lobby has a infinite potion effect speed and jump-boost, they don't get removed.
Could you please add this?

Improving: Joining arenas via signs, to make it even more compatible with other plugins on the server

Hey,
currently if one of those join signs are clicked the player instantly gets put into the arena, without a chance for other plugins to intercept this via bukkit events, for example to block joining via these signs, if they are currently in a state during which they shouldn't be able to join.

So a way to improve this would be to ignore cancelled Interact events (so the other plugins can potentially cancle the sign clicking), or , even better and more universal: let the players who clicked the sign perform the sg join command instead, which then can easily be catched by other plugins inside the PlayerCommandPreProcessEvent to stop it from executing.

Edit: I just noticed that the PlayerCommandPreProcessEvent is not called by craftbukkit in this case, but only if the command was executed via a chat packet.
So the right solution would be, to call a PlayerCommandPreProcessEvent yourself and don't run your code / perform the command, if it was cancelled by an other plugin.

This would make more things possible, like multiple, open minigame lobbies, where players can walk around between. But a player shouldn't be able to join SG while an other plugin still thinks that they are inside another game "lobby". The other game can easily block all other commands, to stop players from joining the other games and would force the player to first leave the other game berfore he would be able to join SG, for example..

Thanks in advance!

Arrows stop on spectators

If a player shoots an arrow at another player and a spectator is between the arrow will stop at the spectator.

Per arena block whitelist

This is a simple idea:
Add per arena block whitelist.
You can add a file in the same directory of the arena rollback.
When you load an arena also populate a array with block.
On event you do the deck on the arena instead of general config.

If you prefere I can create a pull request.
Sorry for my bad English.

Tab

  • Per arena tabs
  • Show alive players on current arena
  • Show kill counts near nicknames
    • Shorten usernames if it's needed
    • Sort players by their kill count (if possible)
  • Overwritte any other tab modifications
  • Customazable
    • Display arena name

Help? ._.

When I do /sg setlobbyspawn, all i get is the message info.lobbyspawn. Also, when I do /sg addwall, it does not show the developer names etc as i've seen before, but it does indeed create the required signs.

Now I have been told not to do /reload as it breaks the plugin so I promptly deleted the jar and files and re-uploaded the .jar file. The issue i've been having is that everytime it is finally set up, the join sign no longer works, but they can do /sg join 1. Even with that command, they can freely walk around the spawnpoints and freely break the lobby etc.

As an OP/owner, when it was properly configured, even I myself could not edit in the map, but now that protection no longer occurs and I am not aware of how to fix it with the minimal amount of commands that we are given :/

I suspect this could also be a conflict with other plugins, but I don't understand how considering it did work fine for a while. I have LWC, McMMO (the two listed as troublesome), Towny, worldguard and essentials as my suspected potential causes D:

If you could really help me out that would be great!

Thank you for your time

-Brendan

(P.S: If this is in the wrong section, I apologize)

Null Pointer Exception onDisable

Hi,
This is the error:
2013-06-09 15:34:02 [SEVERE] Error occurred while disabling SurvivalGames v0.5.8.42 (Is it up to date?)
java.lang.NullPointerException
at org.mcsg.survivalgames.logging.QueueManager.rollback(QueueManager.java:67)
at org.mcsg.survivalgames.SurvivalGames.onDisable(SurvivalGames.java:53)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:219)
at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:481)
at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:400)
at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:393)
at org.bukkit.craftbukkit.v1_5_R3.CraftServer.disablePlugins(CraftServer.java:277)
at net.minecraft.server.v1_5_R3.MinecraftServer.stop(MinecraftServer.java:334)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:441)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)

It is generated on plugin disable. I'm running the latest dev bukkit version under Windows 8 whit latest JDK (64bit).
The installed plugins are:
Permission Ex, Vault, SurvivalGames, Multiverse-Core, World Edit. (All updated at latest version)

I have also removed all plugin (SurvivalGames and World Edit excluded) but the error persists.

Can't compile!

Well i added WorldGuard source code and now it works :)

Updates spam this message.

3:53:36 PM SG]Checking: for updates
3:53:36 PM CONSOLE: [WARNING] [SurvivalGames] [SurvivalGames] could not check for updates.
3:53:42 PM CONSOLE: [INFO] onBlockFromTo:Location{world=CraftWorld{name=Protection2},x=909.0,y=8.0,z=-338.0,pitch=0.0,yaw=0.0} Type:STATIONARY_LAVA
3:53:42 PM CONSOLE: [INFO] onBlockFromTo:Location{world=CraftWorld{name=Protection2},x=909.0,y=8.0,z=-338.0,pitch=0.0,yaw=0.0} Type:STATIONARY_LAVA
3:53:42 PM CONSOLE: [INFO] onBlockFromTo:Location{world=CraftWorld{name=Protection2},x=909.0,y=8.0,z=-338.0,pitch=0.0,yaw=0.0} Type:STATIONARY_LAVA
3:53:42 PM CONSOLE: [INFO] onBlockFromTo:Location{world=CraftWorld{name=Protection2},x=909.0,y=8.0,z=-338.0,pitch=0.0,yaw=0.0} Type:STATIONARY_LAVA

Small spelling error in code

Spelling error in

public String help(Player p) {
    return "/sg sepctate <id> - Spectate a running arena";
}

Might want to change it to

public String help(Player p) {
    return "/sg spectate <id> - Spectate a running arena";
}

Arena "freeze"

Nobody can join Arena 3
2013-05-17_20 17 05

Ways to fix:
disable->enable arena
restart server

Way to reproduce (can't really confirm it):
2 players alive and 1 of them must leave the game

Error startup

My error is this one, I have 1.5.2 bukkit version and it happens when I activate statistics with the database to see the statistics in a webpage:

2013-09-14 01:20:36 [INFO] �[0;33;22m[�[0;31;22m�[21mSG�[0;33;22m] �[0;33;1mMaximuSTeKiS �[0;36;22mkilled�[0;33;1m Bestbeast �[0;36;22mto win the Survival Games on �[0;36;22marena 1�[m 2013-09-14 01:20:36 [SEVERE] java.sql.SQLException: Illegal operation on empty result set. 2013-09-14 01:20:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073) 2013-09-14 01:20:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987) 2013-09-14 01:20:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982) 2013-09-14 01:20:36 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927) 2013-09-14 01:20:36 [SEVERE] at com.mysql.jdbc.ResultSetImpl.checkRowPos(ResultSetImpl.java:841) 2013-09-14 01:20:36 [SEVERE] at com.mysql.jdbc.ResultSetImpl.getInt(ResultSetImpl.java:2672) 2013-09-14 01:20:36 [SEVERE] at org.mcsg.survivalgames.stats.StatsManager.saveGame(StatsManager.java:131) 2013-09-14 01:20:36 [SEVERE] at org.mcsg.survivalgames.Game.playerWin(Game.java:638) 2013-09-14 01:20:36 [SEVERE] at org.mcsg.survivalgames.Game.killPlayer(Game.java:602) 2013-09-14 01:20:36 [SEVERE] at org.mcsg.survivalgames.events.DeathEvent.onPlayerDieEvent(DeathEvent.java:58) 2013-09-14 01:20:36 [SEVERE] at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) 2013-09-14 01:20:36 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-09-14 01:20:36 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source) 2013-09-14 01:20:36 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) 2013-09-14 01:20:36 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 2013-09-14 01:20:36 [SEVERE] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) 2013-09-14 01:20:36 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) 2013-09-14 01:20:36 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callEvent(CraftEventFactory.java:93) 2013-09-14 01:20:36 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:381) 2013-09-14 01:20:36 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:406) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.EntityLiving.damageEntity(EntityLiving.java:677) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.EntityHuman.damageEntity(EntityHuman.java:684) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.EntityPlayer.damageEntity(EntityPlayer.java:358) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.EntityHuman.attack(EntityHuman.java:874) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:1107) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.Packet7UseEntity.handle(SourceFile:36) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.Packet7UseEntity$$EnhancerByCGLIB$$7bc3e394.CGLIB$handle$0() 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.Packet7UseEntity$$EnhancerByCGLIB$$7bc3e394$$FastClassByCGLIB$$66843d17.invoke() 2013-09-14 01:20:36 [SEVERE] at com.comphenix.net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) 2013-09-14 01:20:36 [SEVERE] at com.comphenix.protocol.injector.packet.ReadPacketModifier.intercept(ReadPacketModifier.java:128) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.Packet7UseEntity$$EnhancerByCGLIB$$7bc3e394.handle() 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:115) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) 2013-09-14 01:20:36 [SEVERE] at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) 2013-09-14 01:20:36 [INFO] [SurvivalGames] Arena 1 reset.

[Fixed] creative mode bug

Dear Double0negative,

I heard that you had already fixed a bug where players who join and arena in creative mode and then leaving it, ending up with the creative inventory, but in survival mode; however, I have found that this bug still does exist.
Please fix it. Thank you.

Auto-assign queue.

A queue for auto-assign (?)
For players with permission sg.arena.autoassign is possible to join auto-assign queue. For players without this permission it's should work just like as it's working now.

World Reset

Can you make it so, that the whole world will reset after the game ends?
Because on some maps there are Redstone circuits, levers, etc and they will not reset and that means that traps won't reset either.

chest

I have read the instructions of the chest configuration but I do not understand what does ratio signifies and in what way does it affect the chests, could you explain it a like bit more crearly.
Thanks

Show icon kits

kit-select-mode: 'SHOW_ICON'

It does not work, It continues showing all

Lobby signs

How to prevent lobby walls from updating stats:

  1. Start server
  2. Get high online on SG arenas
  3. Force disconnect all online players
  4. Here we go.

chest.yml is derp

Seems like it spawns only "1" level common items with default configuration. Build 59.

BUGGGG!!!!!!!

When people go disconnect in the middle of a game and then reconect they go to the arena of survival games they were

Break White-List

I tried to add all of the leaves for the white list, but yet, player cannot break other leaves. They can only break Oak Tree Leaves.

Bug when killed by bow and arrow

Hi i got some problems when someone die by a bow and arrow.
When the player dies, he starts falling in a loop hole and he will not die until the player exit the client.

Here is the error from console when someone dies from bow and arrow:
http://pastebin.com/4GhetuFK

Im using Spigot and SurvivalGames dev build #49

Best regards
Orgiz

SurvivalGames Arenas not ending properly

I run a massive Server and i am using the survivalgames plugin. When my arenas end, When you click to sign it says 'Cant join arena' the if you look at the sign it says 'FINISHING' and it only fixes if i restart the server but happens again when it ends.
I have redownloaded the plugin and tried a different version and this is still occurring. It does come with a crash when this happens. Please help me out!
Here is the crash http://pastebin.com/YSrD9jRV
Thanks A Lot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.