
SurfEvents 2.2.3
Add Speedbuilders, Skywars, Blockparty, HorseRace, Bomberman, and more to your survival server!
Now you can add a finishing phase stage for the events, here's how it works:
- Every time an event ends, if finishing-phase is enabled, the players will be teleported to an area to stay there an amount of time (which you can modify), and after that period, they will be teleported back to their locations (or to exit-location if you have teleport-back set as false).
- While in this finishing phase, you can set up firework locations, firework colors and custom music to play.
- You will also be able to run global and per player commands when this phase is called.
The finishing phase can be setup in the config.yml file, if you want to check the default config.yml values, access this link.
- Now you can edit/check players wins amount in-game with the /event stats command:
You can use one of the following options:
- /event stats check (player-name): Check some information about a player statistics.
- /event stats add/remove wins (player-name) (amount): Add/remove an specific amount of wins for a player.
- Added /surfevents command, which will for now just return a message showing the main commands.
- Now if an event name is typed wrong, its name will appear on the console output
- Now you can set the Custom Model Data for weapons on quake, paintball and spleeg
- Added two new placeholders:
%surfevents_red_score% and %surfevents_blue_score%, which will return the respective team score for games like capture, paintball and sheepwars.
made some changes on the placeholderapi expansion to fix some issues regarding use of another plugins that hook into the plugin player stats.
- Fixed a bug on speedbuilders game
- Fixed a bug with tab plugin
- Fixed issue where player last location wasn't being saved correctly
- Fixed a bug where the team selection items were removing some of the player inventory items.
Now the capture, fight and sheepwars events will have two kit setups (one for each team/player).
- Added new argument for /event forcejoin command (/event forcejoin -all), which will try to force all the players to join the event.
- Added "surfevents.bypass.forcejoin" permission to let players bypass forcejoin command.
- Fixed some small issues regarding the new player stats system.
Now the stats for each player will be saved in a single file for each player. Also, some new data will be added to the player stats, the file structure is going to look something like this:
{
"name": "Dadaray_",
"wins": 1,
"totalPlays": 10,
"gameWins": {
"parkour1": 0,
"blockparty1": 1
},
"gamePlays": {
"parkour1": 7,
"blockparty1": 3
},
"typeWins": {
"parkour": 0,
"blockparty": 1
},
"typePlays": {
"blockparty": 3,
"parkour": 2
}
}
These files will be saved in data/wins.
The placeholders to access these values are:
%surfevents_wins% - Returns the player wins amount.
%surfevents_plays% - Returns the amount of games played by that player.
%surfevents_wins_game_(game-name)% - Returns the player wins amount on that specific game.
%surfevents_plays_game_(game-name)% - Returns the amount of games played by that player on that specific game.
%surfevents_wins_type_(game-type)% - Returns the player wins amount on that specific game type.
%surfevents_plays_type_(game-type)% - Returns the amount of games played by that player on that specific game type.
Now before starting an event the locations will be verified to check for possible errors on configuration.
- Fixed a bug where the event was being set as "full" when it actually wasn't in skywars and speedbuilders duo mode.
- Added "surfevents.start" permission to allow players to run /event start command.
- Fixed a bug where event items weren't being removed after the end of capture event.
- Fixed a bug where xp wan being wiped when using multiverse inventories.
- two new comands added:
/event forcejoin <player-name>
Will try to force a player to join the event if the player is able to do it.
/event kick <player-name>
Will kick a player from an event.
- Now if you place "random" as an event name on the schedule, a random event will be started. Example:
"random,17:35,everyday"
-Added new values on config.yml:
random-name: "&bRandom"
random-event-icon: "END_CRYSTAL"
- Fixed a bug where players inventory wasn't being restored if the player log out while on spectator mode.
- Added support for Multiverse-Inventories (If the plugin is present, the inventory management will be disabled and multiverse will handle that).
- Now in pvp events players will be able to move items in inventory.
- Added extra checking step before starting event to search for missing values.
- Fixed an issue where the in-game editor wasn't working properly when some chat plugins were installed on the server.
- Fixed an exception on quake event.
- Now if you have surfevents.adm permission you can bypass blocked-commands while in event.
Now you will be able to remove only specific items from skywars chest loots through the in-game editor. Two new items were added to the "setup chest items" page.
Changed the way items are cleared on skywars to avoid issues related to items staying on the arena when another game starts.
Added new placeholder:
- %surfevents_total_players%
This placeholder will return the total number of players when the game started. You can use this to create rewards based on the amount of players for example.
It will return 0 if no event is running.
Now the following events will require a previous map saving methods similar to skywars:
- Runner;
- Spleef;
- Spleef;
This will prevent some wrong restorations that were happening with the old method, and also prevent some wrong location configuration.
If no map file is found, the event won't start.
With this new feature, two new location will be required:
- corner1: first corner location to save the map
- corner2: seconds corner location to save the map
All this process can be easily done through the In-game editor, just make sure to read the messages displayed during the edition.