Lite Survival Games Manager
Lite Survival Games Manager
This project is abandoned. Use an alternative plugin.
Description
Survival Games have become popular in Minecraft recently, with the Hunger Games movie. The goal of the game is simple: survive. Players must adapt to the environment, find resources, and - most importantly - kill. The last player standing is the winner. The goal of this plugin is to allow players to run servers - whether big, public servers or smaller ones with friends - easily and make the experience more enjoyable. The hope for this plugins release is to allow admins to add maps, configure the plugin, then run the server and take the day off. Making the entire game automatic and requiring no admin at all.
Features
- Create a backup of the world to reload after the match
- Automatically refill select chests with select items
- Set players to spectate mode after death
- Changeable time limit
- Automatically restart and reload world after the match.
- Allow admins to set hosts with simple commands
- Keep track of individual scores
- Store data in a SQLite file
- Allow a server to load different maps in a map cycle
- Allow multiple spawn points to be set up
- Black or white list blocks that can't or can be broken, respectively, by players in-game
- Voting to start a game without an admin
- Selecting a button/lever to be triggered on game start
- Auto start with minimum players
- Peace time
- Players kicked after death
Spectate mode will god players, allow them to fly, make them invisible, and prevent them from interacting with the world. They can also teleport to players.
Use
- Set the server up for auto restart. See the section below.
- Edit the config files to your liking. They should be config.yml and blocks.yml in the plugins/LSGM folder.
- Add a map to the map cycle. Type /lsgm addmap <mapname>. You can add as many maps as you'd like, they'll be randomly picked from the file (same map can not be repeated) to be loaded on restart.
- Set spawns. You will want an individual spawn for the maximum players on your server. If there are too few spawns, more than one player should be spawned at a spawn point. Stand on the spawn point and type /lsgm addspawn <id>.
- Add chests. Chests will be automatically refilled on a set time or will be refilled on the command /lsgm fillchests. Look at the chest and type /lsgm addchest <id> [group], or - if you feel that your computer can handle it - type /lsgm addchest all and every chest on the map will be found automatically. You must fly around and make sure you load every chunk on the world to get every chests! Currently, we can only find chests on loaded blocks.
- Back up the world. This allows the world to revert to its original state when it is loaded next. Just type /lsgm backup.
- If necessary, add a start button or a lever. This will be activate when the game starts. Look at it and type /lsgm addbutton <id>
- Start the game. Go ahead and type /lsgm start [chest refill delay in minutes] [time limit in minutes]. If you do not specify a refill delay or a time limit, they will default to a 15 minute refill delay and no time limit.
- Check for bugs! There are probably going to be a lot. Not an understatement.
- Type /lsgm help for various other commands.
- If set, the server will automatically restart after the game.
Recommended: Download AntiCheat to easily disable client mods and prevent exploitation!
Auto Restart
In order for the server to start up again after the plugin has stopped it, you must change the file you use to run the server (e.g., RUN.bat). You will need to loop through the java -jar command so that it is ran when the server goes down. See the examples below:
Windows (*.bat)
@ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" :start java -Xincgc -Xmx1G -jar craftbukkit.jar goto start
Mac/Linux (*.sh)
#!/bin/bash BINDIR=$(dirname "$(readlink -fn "$0")") cd "$BINDIR" while true do java -Xincgc -Xmx1G -jar craftbukkit.jar done
Commands
General command usage: /lsgm <command> [args]
- backup - Makes a backup of the world, to be loaded on the next game.
- addmap - Adds map to maplist. Usage: /lsgm addmap <map>
- delmap - Removes a map from the map list. Usage: /lsgm delmap <map | all>
- listmaps - Lists the maps on the map list.
- addchest - Adds the chest you are looking at to the refill list. Usage: /lsgm addchest <id> [group]
- delchest - Removes the chest you are looking at from the refill list. Usage: /lsgm delchest <id | all>
- listchests - Lists all of the chests on the refill list.
- fillchests - Fills all of the chests on the refill list.
- info - Display game info. Usage: /lsgm info [player]
- start - Start the games. Usage: /lsgm start [chest fill delay] [time limit]
- stop - Stop the games.
- addspawn - Add a spawn point where you are. Usage: /lsgm addspawn <id>
- delspawn - Remove a spawn point. Usage: /lsgm delspawn <id | all>
- sethost - Make a player a host. Usage: /lsgm sethost <player> <true | false>
- reload - Reload the config
- votestart - Vote to start a game
- addbuton - Add the button/lever you're looking at to buttons/levers to be triggered on game start. Usage: /lsgm addbutton <id>
- delbutton - Remove a start button. Usage: /lsgm delbutton <id | all>
- listbuttons - List ALL the start buttons!
Permissions
- lsgm.backup:
Back up worlds
- lsgm.access:
Use LSGM commands
- lsgm.fillchests:
Refill chests
- lsgm.addchest:
Add chests to the database
- lsgm.removechest:
Remove chests from the database
- lsgm.addmap:
Add maps to the map cycle
- lsgm.removemap:
Remove maps from the map cycle
- lsgm.start:
Start the game
- lsgm.stop:
Stop the game
- lsgm.addspawn:
Add a spawn point
- lsgm.delspawn:
Remove a spawn point
- lsgm.sethost:
Make a player a host
- lsgm.reload:
Reload the config
- lsgm.addbuton:
Add a start button
- lsgm.delbutton
Remove a start button
Configuration
config.yml
This is the general config file.
# -- blocklist-type # Use "black list" if you want what is in blocks.yml to not be broken by players. # Use "white list" if you want the blocks in blocks.yml - and only those blocks - to be allowed to be broken by players. # If you do not want to block anything, leave this as black list and leave blocks.yml empty # Warning: If this is set to white list and blocks.yml is empty, then no blocks can be broken. # -- time-limit # Default time limit in minutes; set to 0 for no time limit. # -- auto-restart # Set to "true" to automatically restart the server after a game, otherwise set to "false." # -- restart-delay # Time - in seconds - to wait before the server restarts. # -- alow-vote-start # Set to "true" to allow players to vote to start the game, otherwise set to "false." # -- minimum-players # Minimum players needed to start a game via voting. Will be ignored if less than 2. # -- auto-start # Start automatically when minimum players reached. # -- auto-start-delay # Time to wait for more players before game auto starts (minutes). # -- allow-spectators # Whether or not people can stay in the game after they die and spectators can join while the game is in progress. True/false # -- peace-time-length # The length (in minutes) players can not attack one another at the start. 0 allows players to attack one another immediatally. # -- refill-delay # Default automatic chest refill delay in minutes; set to 0 for no automatic refills. # -- refill-group # Chest group to be refilled automatically; leave default if you do not use custom groups. # -- refill-items # Items eligible to be placed into chests on automatic refill; format: itemid amount. # For now, the only way to set the probability of getting a certain item to be higher, you must add the item more than once. blocklist-type: white list time-limit: 0 auto-restart: true restart-delay: 5 allow-vote-start: true minimum-players: 2 auto-start: false auto-start-delay: 5 allow-spectators: true peace-time-length: 0 refill-delay: 15 refill-group: default refill-items: ..
blocks.yml
The blocks to be used in the white/black list. Use the block's ID, not the name.
# These are the blocks to be used with the white/black list. # See the example below for how to format this file. Use the block's id in the list. # Do NOT use tabs or allow you text editor to auto-tab! When indenting to list the ID, use two spaces! blocks: - 0 - 7
@hockeygoalie5
Will this plugin eventually have the ability to automatically start the games when a certain number of people log on? I don't believe it's already implemented.
@atm2770
I don't use either of those, they shouldn't be required. Changing the script you use to run the server as shown in the auto restart section should be all.
Hello everyone! This is a great plugin and I figured out why my worlds would not change. If you were having the same type of problem, You need to use the server re-starter that they recommend! It will not work with servers not running plugins such as rtoolkit or simple-restart. Just FYI.
@atm2770
Then there shouldn't be a problem. It's currently around 1 A.M. here, so I'll figure it out when normal people are awake. Thanks for bringing this to our attention.
@hockeygoalie5
The two worlds I am using is The Survival Games and The Survival Games 2 by Vareide. In my server.properties file in the server directory, my level-name="Survival_Games", I feel that this is the problem even though both Survival_Games and Survival_Games_2 are in the maplist file as well as the backup.
@atm2770
The plugin will treat any world as a world you intend on playing survival games on. I assume that you're trying to switch to a normal world and no longer play Survival Games? There is no way to do that, because you will need to remove the plugin in order to have normal play.
This is a really great plugin and I cant wait to see where it goes. I have only found one bug/problem however. (only one) When my server restarts automatically, in the consol it says it is loading my next world, however right after the console states this is says "loading level (my last world)". I have it set up to where the "Last world" is the normal world, (as if i used a vanilla server this would be the standard world). Does this conflict with the plugin? If so, how can I fix this? Thank you.
@DribblesSeakip
We've still not been able to reproduce any of them. We've done compete re-installs, had other people tried to install it, and any possible way to try to cause this bug. Whenever the game starts, though, people leave spectate as they should. With so much other work (we can't develop from a box when we don't pay the bills), it's also hard to delve deeper into the issue. Can you provide a thorough, thesis-esque description of what the fuck is going on?
Hockey, any ETA on the update that will fix all the issues?
@hockeygoalie
Okay but, Right when people join it puts them as spectator and i dont know how to take them off of it. Even when the games starts.
@iminecraft4life
/lsgm sethost <player> true
Hosts are like spectators, but can modify the world, are in creative, etc. Otherwise, they are normal players during the game. Hosts will not be placed in the game when it starts.
So is there away to take the players of spectate mode ?
How to you take players of spectate mode ??
Hi guys, I know you're busy but it's been a week, can we please have the plugin fixed? Thanks.
@hockeygoalie5
no no no no no i want them to click a sign and if the game is going they click the sign and they are in line for the next game just like the survival games wow i wish u can just make it exactly like the survival games plugin but just allow setting chest to the refill list and make the items the same when they refill XD
@MotionZ101
Sorry, I keep forgetting what you asked for mid-reply. I don't really see a point. Currently, players can already vote to start a game and soon the game will auto-start when criteria is met. Do you want players to be able to join while the game is still running?
@hockeygoalie5
how about the wall thing do you think it is possible?
@MotionZ101
/lsgm info shows who is still alive if a game is running. /lsgm info <player> shows specific information about a player, offline or on. Maybe we will soon allow you to opt for having chests refilled with what they originally had when you added them. You can, however, edit what they're filled with in config.yml.
@hockeygoalie5
but can you do the other stuff i asked for?
@MrFrostmaul
We are currently at the point to add extra features, but most of us are occupied with occupations at the time.
@MotionZ101
This already exists! If you fly around and periodically use /lsgm addchest all, then every chest in chunks currently loaded will be added. You do need to fly around and make sure every chunk is loaded and you'll get every chest. I'd use it as you load a good amount of chunks, because they eventually unload.