Commit Graph

2924 Commits

Author SHA1 Message Date
Florian CUNY
a080e4f4c4 Fixed crashing tests 2019-10-13 10:39:27 +02:00
Florian CUNY
77e0f01510 Added options to reset player's health, hunger and XP
Implements https://github.com/BentoBoxWorld/BentoBox/issues/958

Added the following methods in WorldSettings and IslandWorldManager:
* #isOnJoinResetHealth()
* #isOnJoinResetHunger()
* #isOnJoinResetXP()
* #isOnLeaveResetHealth()
* #isOnLeaveResetHunger()
* #isOnLeaveResetXP()
2019-10-13 10:29:32 +02:00
Florian CUNY
6dffdd142f
Added GitHub "Sponsor" 2019-10-13 10:02:48 +02:00
tastybento
6f96f47ae5 Adds invites to trust and coop (#971)
Implements https://github.com/BentoBoxWorld/BentoBox/issues/800

* WIP

* Generic invites for team, coop and trusting.

Needs play testing.

https://github.com/BentoBoxWorld/BentoBox/issues/800

* Fixed tests and added handling in trust and coop commands

* Completes invite, trust and coops command and tests.

* Minor documentation/settings improvements

* Renamed InviteType to Invite.Type

* Fixed compilation error
2019-10-13 09:28:49 +02:00
tastybento
d27ea949d0 Fixes potential error in asyncSaveAll of players
https://github.com/BentoBoxWorld/BentoBox/issues/982
2019-10-11 08:39:45 -07:00
tastybento
7d8539b4cd Should fix CHM error in asyncSaveAll
https://github.com/BentoBoxWorld/BentoBox/issues/982
2019-10-11 08:36:23 -07:00
tastybento
e9e10eed75 Fixes island near command for team members.
https://github.com/BentoBoxWorld/BentoBox/issues/981
2019-10-10 08:14:00 -07:00
tastybento
6085deff49 Clears home locations when admin kicking a player
https://github.com/BentoBoxWorld/BentoBox/issues/980
2019-10-09 12:57:29 -07:00
tastybento
2db926f640 Spreads out backup database saving to avoid lag
https://github.com/BentoBoxWorld/BentoBox/issues/976
2019-10-07 16:16:26 -07:00
Florian CUNY
27647da6f4 Force the Blueprint name to be lowercased using English locale 2019-10-05 22:22:25 +02:00
tastybento
94ff2ebf75 Tie banned falling command to world flag and fix bugs
https://github.com/BentoBoxWorld/BentoBox/issues/863
2019-10-03 14:11:32 -07:00
tastybento
215c79d74d Now with a fall distance check!
https://github.com/BentoBoxWorld/BentoBox/issues/863
2019-10-03 13:42:40 -07:00
tastybento
42ba6dcc50 Adds banned commands when falling to WorldSettings
To complete the functionality, the addon will need to overrider the
banned falling command method

https://github.com/BentoBoxWorld/BentoBox/issues/863
2019-10-03 13:34:03 -07:00
tastybento
75ec023249 Creates a spot for a player to teleport to if there is none available.
https://github.com/BentoBoxWorld/BentoBox/issues/963
2019-10-03 13:01:14 -07:00
tastybento
b448df5418 Improves mob removal on teleport.
Will not remove mobs for chorus fruit, ender pearl or spectator
teleports. Will not remove mobs if the teleport distance is less than
the mob removal distance.
Mob teleport removal is already a world setting.
2019-10-02 16:11:15 -07:00
tastybento
7bf0de9eda Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2019-09-30 15:38:15 -07:00
tastybento
8c037fc1a3 Shifted GSON conversion to main thread to avoid concurrent modification
https://github.com/BentoBoxWorld/BentoBox/issues/968
2019-09-30 15:38:00 -07:00
tastybento
d2502a6289 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2019-09-29 16:31:51 -07:00
tastybento
4d861613e9 Added test class for AdminResetFlagsCommand 2019-09-29 14:35:30 -07:00
tastybento
8a1d969103 Added ability to reset one island flag to default for all islands
https://github.com/BentoBoxWorld/BentoBox/issues/958
2019-09-29 14:35:15 -07:00
Florian CUNY
477f60ae03 Added Banner patterns support in Blueprints
Implements https://github.com/BentoBoxWorld/BentoBox/issues/961
2019-09-29 10:26:39 +02:00
Florian CUNY
a415a65e7e Added AdminResetsAddCommand and AdminResetsRemoveCommand 2019-09-29 09:59:20 +02:00
Florian CUNY
ac2f45ac8c Fixed mistake in 'commands.admin.resets.reset.success-everyone' in en-US 2019-09-29 09:56:47 +02:00
Florian CUNY
6c3667e3ed Improved success messages for AdminResetsSetCommand and AdminResetsResetCommand
Also allowed AdminResetsSetCommand to set the resets to 0.
2019-09-29 09:55:00 +02:00
Florian CUNY
e20690935a Fixed AdminDeathsRemoveCommand allowing to set a negative number of deaths
Also fixed the "[total]" textvariable not working in its success message
2019-09-29 09:18:22 +02:00
tastybento
f8c4ea568f Adds auto-updating of locale files
https://github.com/BentoBoxWorld/BentoBox/issues/960
2019-09-28 17:10:30 -07:00
Florian CUNY
6799c43a0a Added AdminDeathsAddCommand and AdminDeathsRemoveCommand
Implements https://github.com/BentoBoxWorld/BentoBox/issues/950
2019-09-28 14:37:29 +02:00
Florian CUNY
d9dc337de9 Should fix NPE when setting up connection to GitHub 2019-09-28 14:21:16 +02:00
Florian CUNY
4eae5fada0 Fixed tests compilation errors 2019-09-28 14:05:58 +02:00
Florian CUNY
93219cbc1c Merge branch 'commands-on-island-creation' into develop 2019-09-28 13:55:01 +02:00
Florian CUNY
c53fece28f Added WorldSettings to run commands on island creation/join and deletion/leave
Implements https://github.com/BentoBoxWorld/BentoBox/issues/704

Gamemode addons will need to be updated to use the new WorldSettings, which have been properly documented so it should be easy to write down comments about them.
2019-09-28 13:48:24 +02:00
tastybento
2f7a4b2528 move entity attribute setting 2019-09-26 08:52:57 -07:00
tastybento
bd34f2c4bc Reordered to Java spec 2019-09-26 08:18:46 -07:00
tastybento
d6e4280a44 Removed todos in code. If they are needed, let's make an issue in Github 2019-09-26 08:17:01 -07:00
tastybento
3e94418e54 Fix nullable annotations in PanelItemBuilder
If null checks are being done, then the parameter annotation must be
@Nullable.
2019-09-26 08:15:43 -07:00
tastybento
0f63353e2b Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2019-09-26 08:11:10 -07:00
tastybento
18c374bfa9 Add null protection for player death requests. 2019-09-25 13:46:34 -07:00
BONNe
ff04f407af Fixed noban, noexpel and bypassexpel permissions (#956) 2019-09-25 12:33:20 +02:00
BONNe
6b42d07185 Prevent to set null as icon in PanelItems. (#957)
Add protection code from null types of icons in PanelItemBuilder.
Relates to https://github.com/BentoBoxWorld/BSkyBlock/issues/203
2019-09-25 12:06:08 +02:00
tastybento
4d045aa966 Removed debug. 2019-09-21 16:50:20 -07:00
tastybento
2e8a3e2abb Protects sweet berry bushes
https://github.com/BentoBoxWorld/BentoBox/issues/948
2019-09-20 18:57:18 -07:00
tastybento
55544ada0a Fixes island respawn bug.
Not all players were respawning on their island. Also, deaths in nether
or end did not teleport back to overworld island.
2019-09-20 18:39:50 -07:00
tastybento
86da94182c Reduces safe spot search radius and checks a few more chunks per tick
https://github.com/BentoBoxWorld/BentoBox/issues/952
2019-09-20 15:16:09 -07:00
tastybento
ff1c984fd0 Teleports instantly to end if location is safe
https://github.com/BentoBoxWorld/BentoBox/issues/952
2019-09-20 12:56:49 -07:00
tastybento
1557bcab61 Merge branch 'develop' of https://github.com/BentoBoxWorld/BentoBox.git into develop 2019-09-20 11:58:43 -07:00
tastybento
c5c5731ce3 Return null if user/player is null
Relates to https://github.com/BentoBoxWorld/Level/issues/86
2019-09-20 11:58:33 -07:00
tastybento
ad33d7fc9d Added a stack trace for this error handling. 2019-09-20 11:57:41 -07:00
tastybento
7e3e7541c3
Gitlocalize 9225 (#955)
* Translate zh-CN.yml
2019-09-20 07:12:57 -07:00
tastybento
60e85d6512 No wither damage on non-BentoBox game worlds
https://github.com/BentoBoxWorld/BentoBox/issues/954
2019-09-19 15:37:45 -07:00
tastybento
6cd8c70bd4 Pastes default nether or end blueprints if island doesn't exist
Fixes issue where the nether-island or end-island named blueprints were
deleted.

https://github.com/BentoBoxWorld/BentoBox/issues/943
2019-09-15 14:10:52 -07:00