
SurfEvents 1.9.9.j
Add Speedbuilders, Skywars, Blockparty, HorseRace, Bomberman, and more to your survival server!
- 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.
Added new placeholder:
%surfevents_is_in_game% - Will return if the player is in game, also considering as a spectator.
Added free-for-all mode for fight event, two new values on the gamefile:
- "free-for-all: false"
If true, will enable free-for-all mode. In that case, the entrance location will be used to teleport the players instead of entrance1 and entrance2.
- "free-for-all-delay: 15"
Delay for players to spread across the arena before the pvp is enabled after they are teleported to the entrance location.
Added new option for sumo event:
"free-for-all: false"
If true, the game will be a free for all based game, instead of a round based game. Also, in that case, the location used to teleport the players when the game starts is the "entrance" location, and not "entrance1" and "entrance2".
Added two new placeholders:
- %surfevents_day_event_<index>%
Returns the indexed event name of the day (returns "---" if no event is found). Index starts with zero.
- %surfevents_day_event_time_<index>%
Returns the indexed event time of the day (returns "---" if no event is found). Index starts with zero.
Added an value to change the maximum distance for spectators for each event:
spectators-maximum-distance: 100
Change this value in the gamefile or through the in-game editor to modify the maximum distance a spectator can go far away from the spectators location.
Changed the way events are initialized to improve performance.