tastybento
b711f3fd6c
Fixes assertion error.
2019-02-21 12:42:53 -08:00
tastybento
83827da448
Fixes a number of issues with spawn island setting
...
https://github.com/BentoBoxWorld/BentoBox/issues/523
Uses safe-spot teleport to teleport players.
The spawn point of an island was not being set by the setspawn command.
The spawn point on the spawn island can now be reset using the setspawn
command.
If the spawn point does not exist, a safe spot will be found.
Added AdminSetspawnCommand test class.
2019-02-21 10:46:29 -08:00
tastybento
160ef002e4
Fixes island coords that are not on the grid.
...
https://github.com/BentoBoxWorld/BentoBox/issues/549
2019-02-20 21:42:43 -08:00
tastybento
da464621e0
Enables negative values in numbered permissions.
...
https://github.com/BentoBoxWorld/BentoBox/pull/560
2019-02-20 12:33:30 -08:00
tastybento
c01bd2e784
Fix admin unregister test. Checks canExecute, not execute.
2019-02-20 11:58:08 -08:00
Florian CUNY
fa1325bf14
Fixed IslandSethomeCommandTest
2019-02-20 11:20:14 +01:00
tastybento
96dda2c96d
Fixed portal teleportation listener
...
The reason the test was failing was because the check on whether the
player had an island or not was not being done. I added the check back
in. So now, if a player has no island, the portal will just do nothing.
2019-02-19 23:27:11 -08:00
tastybento
e56d6715af
Fixed default help command test class
2019-02-19 23:03:17 -08:00
tastybento
dfc667953f
Fixed team kick test class
2019-02-19 22:49:48 -08:00
Florian CUNY
9b1e955d18
Added Flags#FLINT_AND_STEEL, Flags#FIRE_BURNING, Flags#FIRE_IGNITE and removed Flags#FIRE + fixed Flags#FIRE_SCOOPING description in en-US locale
...
Closes #414
commit 0b551d174289ea1b75e55f0f4d268592a716f66f
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:50:08 2019 +0100
Updated FireListenerTest
commit 3f2cc83037e1994a686bacd4d8541eece8c9dc53
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:40:46 2019 +0100
Added descriptions in en-US for FIRE_BURNING, FIRE_IGNITE and FLINT_AND_STEEL
commit 880df9e904a0121804a73c2fcb40b9faa2aa290b
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:35:54 2019 +0100
Fixed description of FISH_SCOOPING
commit 02259b0f8fdad31e7431d4d525b74bee6b499813
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:34:54 2019 +0100
Improved description of FIRE_SPREAD
commit 92c5d137d8fb114dacdebc32626e04a5ee16982b
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:30:17 2019 +0100
Added Flags#FIRE_BURNING and Flags#Fire_IGNITE
These are SETTING flags
commit 0be4a87c1986a55a15fa16e87e4073921a269e34
Author: Florian CUNY <poslovitch@bentobox.world>
Date: Tue Feb 19 10:21:52 2019 +0100
Added Flags#FLINT_AND_STEEL
#414
2019-02-19 10:56:11 +01:00
Florian CUNY
b9bc394945
Ignored failing tests
2019-02-17 15:10:40 +01:00
tastybento
bce17ce467
Added admin trash command to handle damaged island db ( #546 )
...
* WIP - adds admin commands to handle damaged island db
Trash, purge, etc.
DO NOT MERGE YET
https://github.com/BentoBoxWorld/BentoBox/issues/505
* Prefixes the island uniqueId with the game mode name.
This enables manual removal of old game mode island files from the
database by admins if required.
* Adds Admin trash and empty trash commands
* Adds various commands for trash management
* Remove unused imports
* Forgot the javadoc in IslandsManager
2019-02-17 13:32:05 +01:00
Florian CUNY
af6ec400d1
Fixed tests
2019-02-16 22:58:46 +01:00
Florian CUNY
3aefdc449d
Renamed NetherPortals to PortalTeleportationListener
...
It is a way more explicit and conventional name, in my opinion!
2019-02-16 11:17:48 +01:00
Florian CUNY
a364128c5e
Extracted standard nether/end spawns protection into its own listener
...
It was previously handled in the NetherPortals listener
2019-02-16 11:09:34 +01:00
Florian CUNY
5d7a7a0363
Ignoring NetherTreesListenerTest for now
2019-02-16 10:59:30 +01:00
Florian CUNY
9803a02471
Added NonNull to all listeners constructors
2019-02-16 10:58:25 +01:00
Florian CUNY
16c4c9b0be
Revert "Fixed errors in tests"
...
This reverts commit b7f9892d95
.
2019-02-16 10:48:41 +01:00
Florian CUNY
44729ae9cb
Moved NetherTreesListener to the correct package
2019-02-14 11:34:33 +01:00
Florian CUNY
b7f9892d95
Fixed errors in tests
...
However, tests are still failing!
2019-02-14 11:32:16 +01:00
Florian CUNY
7ac5f556a1
Started NetherTreesListenerTest
...
I haven't worked that much on it yet. I've got tons of other things to do!
2019-02-14 11:13:00 +01:00
Florian CUNY
1eac578ba1
Moved the Nether trees conversion to its own listener
2019-02-14 11:08:54 +01:00
tastybento
58253eb7d7
Implements gamemode-specific flags API ( #541 )
...
* Implements gamemode flags API
https://github.com/BentoBoxWorld/BentoBox/issues/406
* New and improved
2019-02-13 07:58:33 +01:00
tastybento
f89419f3d8
Made declaring the player mandatory when calling FlagListener#checkIsland(...) ( #543 )
...
* WIP - See FlagListener.java for changes
Makes declaring the player mandatory for checkIsland method so it cannot
be forgotten and will be fresh every check.
See BlockInteractionListener for how it will look.
* Update src/main/java/world/bentobox/bentobox/api/flags/FlagListener.java
Co-Authored-By: tastybento <tastybento@users.noreply.github.com>
* Update src/main/java/world/bentobox/bentobox/api/flags/FlagListener.java
Co-Authored-By: tastybento <tastybento@users.noreply.github.com>
* Adjusted all the flags to new API
2019-02-13 07:55:36 +01:00
tastybento
75c9f6fb2c
Enables dragon to be summoned using /summon command
...
https://github.com/BentoBoxWorld/BentoBox/issues/522
2019-02-11 19:11:48 -08:00
tastybento
179a71b548
Get island by its UUID API added
...
https://github.com/BentoBoxWorld/BentoBox/issues/341
2019-02-11 19:01:44 -08:00
tastybento
9dfb0573d9
Adds test class for Island Sethome command.
...
Refactors some of IslandSethomeCommand class to use the new canExecute
method.
2019-02-11 15:54:15 -08:00
tastybento
ac2e3596f7
Made admin unregister command confirmable.
...
Uses new canExecute API.
Also correctly removes any island members from the island.
2019-02-10 21:57:58 -08:00
tastybento
04e4b2dbe5
Merge branch 'develop' of https://github.com/BentoBoxWorld/bentobox.git into develop
2019-02-10 15:36:46 -08:00
tastybento
8334de8cba
Fixes island pasting issue when pasting clipboard every tick.
...
https://github.com/BentoBoxWorld/BentoBox/issues/535
due to race conditions with task timers and incorrectly shared field
variables, islands would not paste completely if pasted every tick.
Now pasting is handled in its own class with a new instance created with
each paste.
2019-02-10 15:36:37 -08:00
Florian CUNY
a2607c913f
Fixed AdminDeleteCommand tests (oopsie)
2019-02-10 22:59:03 +01:00
Florian CUNY
0fd043df23
Partially fixed island owner losing inventory on /is team kick
...
Partially fixes #521 .
See https://github.com/BentoBoxWorld/BentoBox/issues/521#issuecomment-462128961 for reference.
2019-02-10 13:34:17 +01:00
Florian CUNY
b8afd1919f
Added Flags#TREES_GROWING_OUTSIDE_RANGE
...
#512
2019-02-09 11:39:12 +01:00
Florian CUNY
af96055753
Added testHasNotPermissionButIsOp in UserTest
2019-02-08 21:25:40 +01:00
tastybento
446028fbae
Revert "Reworks how dragons are removed."
...
This reverts commit af9de5580a
.
2019-02-05 22:54:48 -08:00
tastybento
af9de5580a
Reworks how dragons are removed.
...
Enables manual summoning of end dragons
https://github.com/BentoBoxWorld/BentoBox/issues/522
2019-02-05 18:37:05 -08:00
tastybento
3ccd19bf9c
Fix locales to show correctly based on GameMode and locations
...
Fixes console translations too.
https://github.com/BentoBoxWorld/BentoBox/issues/519
2019-02-04 23:02:07 -08:00
tastybento
fd882c018b
Fixes enderchest world setting
...
It was being double handled by two listeners.
Fixes:
https://github.com/BentoBoxWorld/BentoBox/issues/516
2019-02-04 22:01:43 -08:00
tastybento
f4c149dd6f
Moved test classes to match src packages
2019-02-04 20:39:21 -08:00
tastybento
7c099d941f
Added IslandWorldManager test class
...
Fixed bugs found in IWM
2019-02-03 19:13:14 -08:00
Florian CUNY
1c06584131
Added Flags#LIQUIDS_FLOWING_OUT
...
Also fixed some Javadoc in Flags, and I've also done my very first test unit!
#511
2019-02-03 14:05:28 +01:00
Florian CUNY
30fb7820fc
Minor modifications to ObsidianScoopingListenerTest
2019-02-03 13:59:00 +01:00
Florian CUNY
ea12d8c167
Moved all the flags listeners to subpackages
2019-02-03 10:22:44 +01:00
tastybento
f60a39a543
Fires team and island events. Adds new events.
...
A lot of the commands were not firing events. These events are now
needed by addons.
Added new JOINED, REGISTERED, UNREGISTERED reasons for events.
Switched to using Bukkit.getServer() instead of plugin.getServer() in a
number of classes because the former can be mocked but the latter cannot
be because it's marked as a final method in JavaPlugin.
2019-02-02 20:40:44 -08:00
Florian CUNY
18eba5725c
Uncommented out a failing test and added a Ignore annotation to it
2019-02-02 14:04:01 +01:00
Florian CUNY
de69c9c571
Removed deprecated FlagsManager#getFlagByID(String)
...
This method was actually still used in some classes, so I had to fix them as well.
2019-02-02 11:06:59 +01:00
tastybento
f983aa5f44
Fixed permission bug with custom schems and reset
...
https://github.com/BentoBoxWorld/BentoBox/issues/509
2019-02-01 20:51:57 -08:00
tastybento
f351704e8a
Prevent placing of armor stands
...
https://github.com/BentoBoxWorld/BentoBox/issues/507
2019-02-01 19:44:46 -08:00
tastybento
8dbf7ec231
Admin team add command was not adding players correctly.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/506
Also, admin unregister was blocking unregistration of team players, but
that is an artificial constraint, so I enabled it. Without it, it would
not be possible to correct weird team issues like this one after they
happen.
2019-01-30 17:27:53 -08:00
tastybento
46cc901c23
Adds support for ItemStack storage in non-YAML databases.
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/501
2019-01-28 18:29:17 -08:00