Commit Graph

3925 Commits

Author SHA1 Message Date
tastybento 19b7d24ad4 Added debug 2017-10-26 15:58:24 -07:00
tastybento 522675a823 Added safe position check to Util. 2017-10-25 18:34:18 -07:00
tastybento 0dfc32a5b9 Improved sub-command registration for add-ins. 2017-10-22 19:08:34 -07:00
tastybento ec5dacfc3a Fixed issues around storing Longs in the database. 2017-10-21 23:08:46 -07:00
tastybento 8ee876eac4 Reworked some classes to enable easier API usage. 2017-10-21 19:53:07 -07:00
tastybento 1e205ac12e Cleaned up command api a lot
Added event that fires when a command is run.
2017-10-21 11:30:22 -07:00
tastybento 7804c4a867 Enabled subcommand addition to BSkyBlock /island command.
This is a bit of a hack. The AbstractCommand class had to be pulled
apart to enable the ArgumentHandler to be imported by another plugin
without the other plugin having to extend AbstractCommand, which is
something it does not want to do because it is not defining a new
command, but just adding arguments. 

There's too much passing of arguments in this implementation, but it
works. I'll see if I can simplify it.
2017-10-09 22:52:57 -07:00
tastybento 6314f1377e Got rid of deprecated methods. 2017-08-30 16:00:00 -07:00
tastybento 3b604058da Rewrote TeamEvent to be a proper builder with final variables.
This follows the proper builder approach, where all variables are
defined in a builder with a final build at the end to make the object.
The variables in the object are final so cannot be changed afterwards.
2017-08-28 22:31:47 -07:00
tastybento 4eaa5a1f5f Added TeamEvents using the Builder pattern.
TeamEvent is used for all team events. Removed the extra classes that
are not needed anymore.

See this for a good summary on builder patterns:
http://minborgsjavapot.blogspot.com/2014/08/creating-objects-using-builder-pattern.html

Plan is to replace the island events with builder pattern too, so that
we only need one class for typical island events.
2017-08-27 21:54:01 -07:00
tastybento c565d5edf8 Added team admin commands.
Still need to add tab complete. Not completely tested so there may be
bugs.
2017-08-27 16:17:45 -07:00
tastybento fe6159e87b Fixed MySQL bug for loading individual objects.
The code was not loading the uniqueId object.

Added a lot of debug code in to help debug.
2017-08-26 18:21:42 -07:00
tastybento f109c956bb Teams functions are working now.
Added kick command.
Cleaned up command permissions and allowed/no allowed logic.
Added permissions to plugin.yml.
2017-08-26 12:36:03 -07:00
Poslovitch adb16eb36b Updated bsb_en_US for the /is help messages 2017-08-23 18:32:51 +02:00
Poslovitch 339e706027 Removed expelall and teamchat from commands 2017-08-23 18:32:21 +02:00
Poslovitch 4c46e1778f Added protection for buttons 2017-08-18 18:40:48 +02:00
Poslovitch 39ddc4eef8 Removed disableOfflineRedstone (will be an addon) 2017-08-18 18:36:45 +02:00
Poslovitch b22c509f3a Removed hard coded default colors. Gonna add them in locale files instead. 2017-08-18 17:14:50 +02:00
Poslovitch 4943c89c42 Code cleanup. Made use of some Java8 features. Renamed PlayerManager#isAKnownPlayer() to PlayerManager#isKnown() 2017-08-18 16:05:35 +02:00
tastybento 55101f7ff2 Lots of changes to get teams to work.
I had a lot of problems finding a bug so I put a lot of debug in.
2017-08-12 18:51:48 -07:00
tastybento 4c69587d9a WIP: Teams - still testing and debugging, but making progress. 2017-08-12 09:08:09 -07:00
Poslovitch 25d2702632 /is help now basically works... But it needs a full redesign 2017-08-09 15:21:22 +02:00
Poslovitch 8c866abdf0 Fixed NPE with last commit 2017-08-09 15:20:48 +02:00
Poslovitch 51eaa0d319 Alias for /bsc + added 'help' in /bsadmin usage 2017-08-09 14:05:57 +02:00
Poslovitch aa8fced2b3 Continued cleanup in IslandCommand
Reindentation, better canUse for most of the commands, temporarly set to
false unfinished commands
2017-08-09 14:05:08 +02:00
tastybento e5cfce4c17 This should work... 2017-08-08 23:10:04 -07:00
tastybento 71d82c9bd5 Merge remote-tracking branch 'origin/develop' into develop
Conflicts:
	locales/bsb_en_US.yml
2017-08-08 20:51:07 -07:00
tastybento 389b9f52f4 Added make leader (WIP) 2017-08-08 20:49:06 -07:00
Poslovitch bfefea7f6a Implemented basic help. It NEEDS improvements. 2017-08-08 17:13:36 +02:00
Poslovitch 4970a43b00 Removed a redundant alias for /island 2017-08-08 17:12:39 +02:00
Poslovitch 95c80a89f8 Made some changes and fixes to commands
ArgumentHandler#tabComplete(CommandSender, String[]) now returns a
Set<String>
Removed some redundant code
2017-08-06 23:01:01 +02:00
tastybento 5d43a500a4 Completed island leave command.
Fixed bugs with teams.
2017-08-05 20:13:06 -07:00
tastybento d5f78e300b CircleCI config update 2017-08-05 16:30:08 -07:00
tastybento 2c2cd774d3 Added team invite command. 2017-08-05 16:09:58 -07:00
tastybento 008a4e6b72 Added CircleCI continuous integration. 2017-08-05 16:09:34 -07:00
tastybento c5d0a09a76 Fixed tabComplete showing messages
Changed the response for canUse to return an error code because the
error could be different depending on the reason. For tabComplete no
error is shown, but for commands, the error can be shown.

Implemented the invite and uninvite commands and filled in the team
command.
2017-08-05 12:45:10 -07:00
tastybento f515623e26 Implemented command arguments and tabcomplete changes
Args no longer include the sub-command, just the args after the sub
command.

Improved tab complete so that it completes half-written commands

Fixed deprecation issue with visitor guard.
2017-08-05 10:23:45 -07:00
Poslovitch 3a10230824 When building bskyblock, it now specify the version in the name of the file 2017-08-01 14:21:32 +02:00
Poslovitch 0c1b5f7197 Tiny adjustements to commands 2017-08-01 14:20:52 +02:00
Poslovitch bbd959f186 Tiny debug change in locales 2017-07-31 11:05:14 +02:00
Poslovitch 614e5d3d5b Commands are now working (still need some work) 2017-07-31 10:58:28 +02:00
tastybento a8606a2b00 Added common variables to AbstractCommand for player, team 2017-07-30 17:44:22 -07:00
tastybento 47d93c8660 WIP - team commands being added.
Commands in general do not work right now.
2017-07-30 17:26:18 -07:00
Poslovitch 6ca5affbf6 Tiny fix to avoid Travis compilation errors 2017-07-30 23:50:15 +02:00
Poslovitch bf90cb7f31 Now it's the correct refactoring 2017-07-30 19:59:56 +02:00
Poslovitch 158c7b3465 Started a refactoring for the commands 2017-07-30 19:57:49 +02:00
Poslovitch 17c7099cbb Merge remote-tracking branch 'refs/remotes/origin/master' into develop 2017-07-30 19:56:58 +02:00
Poslovitch 00feaa4740 Added KEEP_INVENTORY flag
Related to https://github.com/tastybento/bskyblock/issues/77

Also made some tiny adjustements, and tidied imports up.
2017-07-25 00:20:33 +02:00
tastybento 2acace84cd Merge pull request #88 from markusmarkusz/patch-1
Added German Translation
2017-07-23 16:19:54 -07:00
markusmarkusz 9aef086669 Added german translation 2017-07-21 14:27:14 +02:00