MinigamesLib: Open SkyWars
MinigamesLib: Open SkyWars
Open SkyWars recoded with MGLib. Usually skywars is fought on islands where you start with some gear in a chest and build up your base or just get some weapons and attack others.
<color red>> MGSkyWars v1.5.1 works with MinigamesLib 1.12, please update if you use the new MinigamesLib version.<</color>>
Setup
You need to install MinigamesLib for the plugin to work
Also, you'll need Vault for economy rewards to work.
- /sw setmainlobby set the main lobby where all join signs will be
- /sw setlobby [arena] set the waiting lobby
- /sw setspawn [arena] will give you a dragon egg which you can rightclick multiple times to set multiple spawns
- /sw setbounds [arena] low sets the lower left corner of the map
- /sw setbounds [arena] high sets the higher right corner of the map (so that you got a cuboid)
- /sw savearena [arena]
You can now set a join sign (optionally). Lines:
- SkyWars
- [arena]
Here's a small help image I drew some time really quick for you to understand how boundaries should be set up:
https://dl.dropboxusercontent.com/u/82137075/help.png
Commands/Perms
Command | Description | Permission |
---|---|---|
/sw | Shows all possible commands | |
/sw setspawn <arena> | Sets the spawn point. | mgskywars.setup |
/sw setlobby <arena> | Sets the lobby point. | mgskywars.setup |
/sw setmainlobby | Sets the main lobby point. | mgskywars.setup |
/sw setbounds <arena> [low/high] | Sets the low/high boundaries of the map. | mgskywars.setup |
/sw savearena <arena> | Saves the arena. | mgskywars.setup |
/sw setmaxplayers <arena> <count> | Sets the max players allowed to join to given count. | mgskywars.setup |
/sw setminplayers <arena> <count> | Sets the min players needed to start to given count. | mgskywars.setup |
/sw setarenavip <arena> <true/false> | Sets whether arena needs permission to join. | mgskywars.setup |
/sw removearena <arena> | Deletes an arena from config. | mgskywars.setup |
/sw removespawn <arena> <count> | Deletes a spawn from config. | mgskywars.setup |
/sw join <arena> | Joins the arena. | |
/sw leave | Leaves the arena. | |
/sw start <arena> | Force-starts the arena. | mgskywars.start |
/sw stop <arena> | Force-stops the arena. | mgskywars.stop |
/sw list | Lists all arenas. | |
/sw reload | Reloads the config. |
Config
There are a few config files (config.yml, classes.yml, arenas.yml, messages.yml, stats.yml) which are mostly self explanatory. Be aware that guns.yml is not used in this minigame!
If you use the chests.yml feature, be aware that chests are only getting generated when you join the game and open one, not after you save the arena.
config: default_max_players: 4 # default amount of maximum players that are allowed to join an arena default_min_players: 2 # default amount of minimum players that can join an arena lobby_countdown: 30 # amount of time in seconds to countdown in lobby ingame_countdown: 10 # amount of time in seconds to countdown ingame before the final start rewards: economy: true economy_reward: 10 # You'll need Vault for economy to work item_reward: false item_reward_ids: 264*1;11*1 # 264 being the id, you can specify an amount (the '*1') and enchantments (e.g. 264#DAMAGE_ALL:2*64 would be sharpness 2 on a stack of diamonds) command_reward: false command: pex user <player> add SKILLZ.* global_arenas_size: 30 # not used in this minigame
You can also specify data on an item reward. If you would want 32 enchanted red wool blocks, you'd adjust the config to: 35:14#DAMAGE_ALL:1*32, where :14 is the data for red, 35 the id for wool, and the rest as explained above.
Chests.yml
The chests.yml feature is optional, normally you can just fill the chests with stuff before saving. If you want them to be loaded dynamically in the game when someone opens a chest though, you can also use the chests.yml. Just set enabled: false to true and edit the chests. Be sure that the percentages add up to 100.
Be aware that chests are only getting generated when you join the game and open one, not after you save the arena.
Default chests.yml: (Here's how you use the item markup: https://github.com/instance01/MinigamesAPI/wiki/Default-Config-and-Item-Markup#item-markup)
config: enabled: false chests: chest1: items: 5*64;5*64;5*64;5*64;262*64;278*1 percentage: 5 chest2: items: 5*64;262*64;267*1 percentage: 20 chest3: items: 5*64;262*64 percentage: 25 chest4: items: 5*64 percentage: 50
Kits/Classes
There are 2 default classes with some startup gear (including bows and armor). You can adjust these in classes.yml.
Preview
Youtube
[Portuguese] Video tutorial by GamesTdai: https://www.youtube.com/watch?v=umeuXWv6T6Q
[English] Video tutorial by Numero Uno: https://www.youtube.com/watch?v=_7G7cSAgXQc
[Portuguese] G4mem4x: https://www.youtube.com/watch?v=hFZyJWWwT2w
[Spanish] FeerBukkit: https://www.youtube.com/watch?v=PxZqgfLpSlw
[Spanish] Another tutorial: https://www.youtube.com/watch?v=yB-XFKW5Omo
Additional Information
Have fun :)
BUGS?
Submit them here: http://dev.bukkit.org/bukkit-plugins/instances-minigamesapi/forum/ and NOT in the comments!
@kwakmantim
Well your classes items are invalid, post your classes.yml on pastebin and link it here please, I'll take a look at it. To remove a default class, add "enabled: false" to the class in config.
@tonico99
I guess your arena is setup wrong and most likely there are errors in console because of that. I suggest you to either send me the errors or pastebin your arenas.yml, I'll tell you what's missing/wrong.
@CaegXCraft
The chests are getting only filled when you join the game and open a chest. If you changed anything in chests.yml, be sure that the percentages are getting added up to 100 and that the items are all valid and as always, please send me any errors in console. Right now I can just guess that you thought it would generate just after you save the arena, which is not the case.
@Floodeer
Yes I did understand you, seems like a neat little addition, I'll add it when I get the time.
I want to remove the Default class, but get this error in the console when i only use my own class:
Failed to load class items: For input string: "" at [1] 504 [0] 65
and then my classes.yml is resettet
@Floodeer
Are you Brazilian?
@Floodeer
Yep! It's cool your suggestion!
I have a suggestion. Configure the central island, and when the player get there, a message appears; "<player> was the first to reach the island central" Or make a sound to alert other players... I don't know if you understood What do I mean.
# Just copy paste if you want more chests.
config: enabled: true chests: chest1: items: 276:0*310:0*311:0*312:0*313:0 percentage: 30 chest2: items: 64;5:0*1 percentage: 50 chest3: items: 3;368:0*312:0*1;322:0*1 percentage: 75 chest4: items: 267:0*10;5:0*308:0*315:0*10;260*302:0*1 percentage: 99. ==
I put this config and I do not fill the coffers
== Hello, I love your plugin skywars is the best of all but I would like to change it as the chest.yml plugin skywars default or make it easier to set up because it gives errors ==
The mine also of this error, when he falls into void he is flying in the air and not going to the main lobby set, and it exceeds the height limit, it's not any warning or not passing, it seems that does not work the height limit imposed, all this straight ok! Just arrange these errors please!
And yes, I use the newest version, 1.4.1!
And add the maps for schematic please, -;
Great plugin! :)
@TheGamesNetwork
The game is all working fine, any errors in console and you sure your setup is all correct? What MGLib version you on?
Yay!! The chests.yml, thank you! :D Giving a try on my test server & Spigot!
The game is buggy spactators cen block players when hitting blocks the when end the game the player whil not tp to the lobby (no bungeecord)
can you fix this :)
Can you add Enchantments to chest.yml
please, re do the chest.yml like this: dev.bukkit.org/bukkit-plugins/skywars-plugin/
chest.yml is a perfect.! :D
@NextStage
@_Glenn13_
I added an experimental version today, use SkyWars 1.4.0 and I think you need MGLib 1.6.
@Vinigamer17
Yeah delay is worked on, some people wanted a stop delay at the end. I'll think about BarAPI, it'll definitely be optional as I don't want extra dependencies.
Suggestion, Add support BarAPI With messages start time of departure, Match Winner is when the match is over 5 second delay for the message to appear is barAPi release fireworks Around the winner
@NextStage
Please add chest.yml i realy need it :D
When you are going to create a chest.yml?
@thewalkingplay
You have to put the items in and then save the arena.
@Vinigamer17
A delay was requested but it's not top priority, this will be added in later future.
Add A delay would be interesting when the players win the match Releasing fireworks around him and after a certain time (5 seconds) If teleported to the Lobby.