tastybento
e9067cfb28
Add bbox admin perms command and adjust perms for commands
...
Made some admin commands have their own perm so that they can be
controlled individually by permissions.
2023-06-18 13:55:21 -07:00
tastybento
53f02ae686
Npe squashing ( #1857 )
...
* Fix hanging [uuid] in info.
* NPE checking
* Make getProtectionCenter nonNull
* More NPE fixes.
* Fix test
* Make getPlayer() and getOfflinePlayer() nonNull returns
This requires addons to not use null checks and instead us the isPlayer
or isOfflinePlayer methods.
* NPE blockers
* Deprecate CompositeCommand isPlayer method.
* Fix test
2021-09-18 17:59:32 -07:00
Florian CUNY
783a68a757
Call the TeamSetownerEvent before making the change in AdminTeamSetownerCommand
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1349
Also call one of the two "RankChange" event before the change (not doing the latter was a bug, actually).
2020-05-13 16:17:29 +02:00
Florian CUNY
de124ab182
Call a RankChange event for the old island owner in Setowner commands
...
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1342
2020-05-09 11:39:17 +02:00
tastybento
ae63125f50
Enables UUIDs to be used in admin commands as well as names ( #1298 )
...
Implements a solution for #1297 .
Adds Util#getUUID(String nameOrUUID)
2020-04-23 21:16:09 +02:00
tastybento
b29da53f43
Revert "Made BentoBoxCommand#setup() default ( #1258 )"
...
This reverts commit 7de842e284
.
2020-04-07 13:38:44 -07:00
Clément P. (Cleymax)
3bd0ff4a69
Added IslandRankChangeEvent ( #1260 )
...
Implements #1135
changed name of the event to append Event to it
Call the event in proper places
2020-04-04 21:57:59 +02:00
Florian CUNY
7de842e284
Made BentoBoxCommand#setup() default ( #1258 )
...
* Made BentoBoxCommand#setup() "default" and deprecated it
* Undeprecated BentoBoxCommand#setup() and changed its javadoc
* Put back setup in IslandGoCommand and IslandSethomeCommand
* Removed setup in AdminPurgeStatusCommand
2020-04-04 20:40:14 +02:00
tastybento
aa5c253e03
Fix for double calling of events ( #1111 )
...
* Fixes tests for AdminSetrankCommand
https://github.com/BentoBoxWorld/BentoBox/issues/1107
* Fixes double calling of events.
https://github.com/BentoBoxWorld/BentoBox/issues/1110
* Makes AddonEvent static
https://github.com/BentoBoxWorld/BentoBox/pull/1111
2020-01-07 10:15:12 -08:00
tastybento
784988ca54
Test class cleanup. Use Bukkit direct calls instead of Bukkit.getServer
2019-10-18 19:33:24 -05:00
tastybento
b1f66eb31b
Fixes bugs and code smells from Sonarcloud.
2019-07-04 16:54:05 -07:00
tastybento
fc160d8c5f
Aligns permissions and fixes permission bugs
...
https://github.com/BentoBoxWorld/BSkyBlock/issues/120
2019-05-07 13:14:25 -07:00
Florian CUNY
6100420bae
Added better success messages to admin team commands
...
#630
2019-04-28 11:21:58 +02:00
Florian CUNY
f333cfbe6f
Added [name] textvariable to admin setowner command 'already-owner' message
2019-04-28 11:15:26 +02: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
tastybento
b51178518a
Fixes admin setowner and info commands for team members
...
https://github.com/BentoBoxWorld/BentoBox/issues/452
2019-01-07 21:37:37 -08:00
Florian CUNY
0322ffe0ce
Deprecated #getTeamLeader(...) methods
...
These have been deprecated in CompositeCommand, IslandCache and IslandsManager and they got replaced by #getOwner(...).
2018-11-18 11:12:54 +01:00
Florian CUNY
0dc9de9c37
Fixed broken file renaming
...
Well... Hopefully it'll fix it
2018-10-28 14:33:36 +01:00