Commit Graph

2298 Commits

Author SHA1 Message Date
tastybento
fce8a65501 Shifted unban command to canExecute API and updated test class. 2019-08-14 10:49:04 -07:00
Florian CUNY
c864191edd Version up 1.7.0 2019-08-14 11:26:45 +02:00
Florian CUNY
57ee8ef48e Release 1.6.0 2019-08-14 10:11:57 +02:00
Florian CUNY
3e71178024 Merge branch 'develop' 2019-08-14 10:11:00 +02:00
Florian CUNY
267c9c73d8 Fixed NPE when opening the Settings Panel with some flags being hidden
The NPE could only occur if a non-op player was trying to open the Settings Panel or change tab or change mode, leading to the call of a null PanelItem.

I added some nullability annotations to make it 100% clear that Flag#toPanelItem(...) returns null if the player is not op and the flag is invisible.
2019-08-13 15:04:31 +02:00
Florian CUNY
7b78267027 Removed %[gamemode]_island_spawnpoint% placeholder 2019-08-13 13:27:04 +02:00
Florian CUNY
1ae3171340 Removed deprecated methods/classes
PremadeEvent, NewIsland.Builder#world()
2019-08-13 11:14:53 +02:00
Florian CUNY
68f90edb2f Fixed another code smell in JSONDatabaseHandler 2019-08-13 11:12:46 +02:00
Florian CUNY
537b854c75 Fixed some code smells
Added TextVariables#NEXT
2019-08-13 10:53:07 +02:00
Florian CUNY
90fd6a625f Fixed duplicated code in flag events (added abstract FlagChangeEvent) 2019-08-13 10:37:55 +02:00
Florian CUNY
98e6468386 Added Flags display mode chart in Metrics 2019-08-13 10:27:19 +02:00
Florian CUNY
44d406bcbd
Fixed invalid color code in en-US locale
Entry was: commands.admin.switchto.success
2019-08-13 10:08:28 +02:00
BONNe
2fa23cf49e Update lv-LV.yml (#892) 2019-08-13 10:05:22 +02:00
tastybento
fb169304cc Pegs banlist command to same rank level as ban command
https://github.com/BentoBoxWorld/BentoBox/issues/891
2019-08-12 19:13:29 -07:00
tastybento
e86fb09cf9 Allows island team members as well as the owner to see the ban list
https://github.com/BentoBoxWorld/BentoBox/issues/891
2019-08-12 18:49:02 -07:00
Florian CUNY
21b7ce4b75 Replaced icons of a few flags to better alternatives
BREAK_BLOCKS: STONE -> STONE_PICKAXE
PLACE_BLOCKS: GRASS -> OAK_PLANKS
ITEM_DROP: BEETROOT_SOUP -> DIAMOND
ITEM_PICKUP: BEETROOT_SEEDS -> SUGAR_CANE
2019-08-13 00:22:52 +02:00
tastybento
2f78957d31 Implements Basic/Advanced/Expert settings panels (#888)
* Implements Basic/Advanced/Expert settings panels

Better alternative to https://github.com/BentoBoxWorld/BentoBox/pull/887

* Remove StatusIcon class - not used.

* Fixes glow of active tab.

* Moved FlagMode to Flag.Mode

* Display the LOCK flag no matter what the tab is

* Made the "mode" being saved for the player instead of per-tab
This means that a player will have its "mode" saved when he comes back later in the Settings Panel while also making the navigation more fluent - he won't need to set PROTECTION and SETTING to the same mode everytime.

Also renamed Flag.Mode#getNextFlag() to #getNext()
Added PlayersManager#setFlagsDisplayMode(UUID, Flag.Mode), #getFlagsDisplayMode(UUID)

* Play a sound when click on the mode button

* Added a description to the "mode" item

* Modified the mode for some flags
2019-08-12 23:54:05 +02:00
Florian CUNY
996a4e3df4 Added a few more translations in fr-FR locale 2019-08-12 13:32:58 +02:00
tastybento
54f44cf30f Range permission was not used when making new island
https://github.com/BentoBoxWorld/BentoBox/issues/664

Added test class for NewIsland class
2019-08-10 15:11:46 -07:00
tastybento
80a5727ec1 Moved settings panels into Admin Settings and adds generic admin panel
Admin panel now can look at users and also set world/system settings.

User settings panel is now just island protection and settings.
2019-08-10 11:46:49 -07:00
tastybento
982072caad Unloads chunks after deletion if they were not loaded originally.
This should reduce GC activity.
2019-08-10 11:45:44 -07:00
tastybento
b5202c3944 Code smell improvements and null protections 2019-08-10 11:44:29 -07:00
tastybento
1d6dba8d59 Adds WitherFlag 2019-08-10 11:41:01 -07:00
tastybento
78a126ef05 locale for Wither flag. 2019-08-10 11:40:23 -07:00
tastybento
186b14a67f Adds Wither damage world settings flag. 2019-08-10 11:40:07 -07:00
Florian CUNY
795cc562aa Added Hooks and "players per server" Metrics charts 2019-08-10 14:00:46 +02:00
Florian CUNY
8119b5c99e Moved Flag events to api/events/flags package 2019-08-10 13:15:33 +02:00
tastybento
f7962ed8cd
Added Greenhouses 2019-08-09 19:08:24 -07:00
tastybento
21fd9e9e1a Fix for console error when using the player command in console
https://github.com/BentoBoxWorld/BentoBox/issues/886
2019-08-09 14:08:21 -07:00
tastybento
e6fd6e02b7 Complexity reduction 2019-08-07 22:51:16 -07:00
tastybento
1e04e480a7 Added test case to FlagTest 2019-08-07 22:43:22 -07:00
tastybento
d4814a6219 Added BlockEndDragon test and reduced code duplication 2019-08-07 22:35:49 -07:00
tastybento
dc728ba0dc Added test class for LanguagePanel 2019-08-07 21:13:59 -07:00
tastybento
6dca821d74 Avoids error if locale name is empty
https://github.com/BentoBoxWorld/BentoBox/issues/883
2019-08-07 18:28:13 -07:00
tastybento
0ddae268f7 Fixes bug with where nether or end worlds with non-standard names
https://github.com/BentoBoxWorld/BentoBox/issues/877
2019-08-06 16:34:08 -07:00
tastybento
e5986d7a72
Updated YamlDatabaseHandler
Added (String) case to the second reference of new PropertyDescriptor. https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8212636
2019-08-05 13:33:56 -07:00
tastybento
d4bbc423bf
Updated YamlDatabaseHandler
Added type casting to code as a workaround to try and resolve a compile issue for Java 11. See https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8212636
2019-08-05 13:31:45 -07:00
tastybento
44cbd81320 Moved to Mockito 2 and PowerMock 2019-08-04 21:44:46 -07:00
tastybento
be673fa527 Switched to latest Mockito and PowerMockito libs. WIP 2019-08-03 18:05:15 -07:00
tastybento
113f065609 Fixes Anvil protection.
https://github.com/BentoBoxWorld/BentoBox/issues/876
2019-08-03 16:57:37 -07:00
tastybento
13ee55a173
Tab panels (#857)
TabbedPanel extends Panel so that when an icon is
clicked, the context can be gathered by the click listener via the
getActiveTab method. In this case, the CycleClick and IslandToggleClick
classes cast the tab to the SettingsTab so they can retrieve the island
that the panel is referring too. This is required in the case where an
admin is setting a user's island settings. Previously the context of a
panel was only every about the user who opened the panel.

* Adds a tabbed panel API

* Added permission for tab

* Adds default world protection settings GUI

This switches the settings panel to use the new TabbedPanel API.

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

* Adds admin command to change a player's settings.

Requires addon to add the admin settings command.

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

* Locale for AdminSettingsCommand
2019-08-03 16:45:41 -07:00
tastybento
d622c12425 Fixes island creation on reservation.
New island panel was not being shown to reserved island players when
using /island or /island go.

https://github.com/BentoBoxWorld/BentoBox/issues/875
2019-08-02 10:29:41 -07:00
tastybento
91077ef895 Fixes NPE with island ban of an offline player
https://github.com/BentoBoxWorld/BentoBox/issues/872
2019-08-02 09:22:12 -07:00
tastybento
6c0305f8f5 Fixes permission check - removes dot 2019-07-31 23:24:10 -07:00
tastybento
fefa806852 Fixes concurrency issue when loading blueprints and bundles
https://github.com/BentoBoxWorld/BentoBox/issues/868
2019-07-30 08:58:43 -07:00
Florian CUNY
ecca366fec Added Gradle dependency to README 2019-07-29 23:11:57 +02:00
Florian CUNY
b8e4e2010d Fixed weird registration for end worlds (it was more strict than nether) in IWM 2019-07-29 21:48:54 +02:00
tastybento
5de285249f Make getPermissionPrefix consistent
https://github.com/BentoBoxWorld/BentoBox/issues/870
2019-07-29 12:00:45 -07:00
tastybento
fb86a25a5e Register worlds with Multiverse - reverts previous change
UseOwnGenerator is used by SkyGrid. This change makes sure MV
registration occurs.

https://github.com/BentoBoxWorld/SkyGrid/issues/22
2019-07-28 21:43:59 -07:00
tastybento
0f5629b729 Adds new flag change events and fires them.
Updated click tests.

https://github.com/BentoBoxWorld/BentoBox/issues/753
2019-07-28 16:15:23 -07:00