Commit graph

112 commits

Author SHA1 Message Date
a91786cf0d
Added support for dynamic help text 2019-02-16 14:04:41 +01:00
d245d21a84
Command system fixes
Removed Vault repo as it seems to be offline and wasn't even used
Fixed CommandSender type, no subcommands handling
Made the default handler use the correct sender type (actually, the generic type might be completely unnecessary but oh well)
No longer checking param types to match methods (needed for generic types)
2019-02-15 23:48:15 +01:00
6b99bc22d7
Added broadcast toggles
TBMCPlugins/DiscordPlugin#89
2019-02-12 22:25:50 +01:00
e3df62af7e
Supporting any sender for the commands 2019-02-09 00:23:20 +01:00
e32805c1fc
Listing subcommands, other fixes
Member command converted
Now requiring the permissions plugin
Added support for optional arguments
Automatically sending an error if parameter conversion fails
Automatically sending the help text if there aren't enough args
Automatically converting the first line of the help text to a header
2019-02-03 00:33:38 +01:00
ab24480f89
Separated commands and handlers
WIP
2019-02-02 02:45:32 +01:00
ab603276d3
Fixes, another plugin disable event
Fixed/implemented number handling in config
Fixed help text error
Fixed annotation processing in other plugins
Fixed error message on console chat
Fixed CI building (hopefully) - Spigot repo
2019-01-30 23:31:20 +01:00
a4e96b0ed7
Component unregistering, command impr.
Automatically unregistering components in order (#57)
Made the command system applicable for Discord as well
2019-01-30 21:14:00 +01:00
7331568886
Command, restart, command improvements
Fixed default command handler not being overridable in some cases
Schrestart now takes seconds as param, not ticks
Allowing to change the current timer value in the restart event

HelpText support added
Automatically generating usage text (ButtonProcessor)
2019-01-29 21:39:14 +01:00
41d40fa415
Compman and config API extension
Fancy way of saying: I added 3 methods
2019-01-28 23:09:07 +01:00
a6effaaf43
Command system, /component impr.
Added even more TODOs
Created command preprocess event
The new command system works
The /component command now uses the new command system
2019-01-27 22:30:23 +01:00
5b75c2fa02
Started working on command system
Added a bunch of TODOs
ThorpeCore
2019-01-27 01:10:10 +01:00
2beb6662ea
Added a getter
And a TODO
2019-01-17 22:13:13 +01:00
cbbb5572b8
Fixed data reloading
And string data caching
2019-01-17 13:39:53 +01:00
788c2e8a87
Components, components everywhere
Channel disable is respected everywhere
Some fixes
Components can be enabled/disabled/listed at runtime
Made RTP a component
Made  e v e r y t h i n g  a component
Made  e v e r y t h i n g  configurable
The plugin list is no longer written by default
#48
2019-01-12 22:26:08 +01:00
1b152d8b4e
Put channels in a component
Using the per-component AddCommand method
CommandComponent got removed, no need for that
Made channel properties configurable (DisplayName, Color)
Made configs testable, it will only use the cached value in that case
This was needed so channel registering continue to work during testing
Made channels possible to disable (WIP)
#48
2019-01-12 00:27:55 +01:00
a6d1122f7f
Some command improvements
Removing commands on component/plugin disable
2019-01-11 00:41:26 +01:00
245f6bbf59
Lots of config improvements
Removed redundant delegate methods by making the methods non-static
Automatically saving config option to the yaml model when it's accessed for the first time
Automatically saving yaml config on component/plugin disable
Automatically resetting config cache on plugin/component disable
Caching the config values so reading is cheaper (it still writes through)
Correctly handling (non-)primitive types in configs
Allowing to set either a primitive or non-primitive default value and the other is obtained from the provided value
#48
2019-01-10 01:34:38 +01:00
bb31f4e378
Exclude plugins from syschat event 2019-01-09 18:52:24 +01:00
7f385df3b1
Handle errors for the components 2019-01-01 03:26:43 +01:00
ff246b8c8b
Using the ChatMessage for the event too
Forgot to commit this lol
2018-12-27 01:16:09 +01:00
df5befe1d9
Fixed plugin config error 2018-12-24 00:08:32 +01:00
dbce36cd4e
PlayerData ann + ConfigData def add 2018-12-23 03:22:21 +01:00
a417d0ea3f
Plugin configs, ButtonPlugin
Using the same thing for config as components
2018-12-18 00:47:00 +01:00
9b097b7858
IsEnabled && enabling late components
Also finally added the source plugin
2018-12-14 23:48:46 +01:00
f8a850df76
Fixes: Origins 2018-11-22 00:46:52 +01:00
f63443bf44
Merge branch 'dev' into redesign 2018-11-20 20:38:46 +01:00
81cb364ddc
Fixes, should be ready to merge 2018-11-18 02:58:26 +01:00
5ef5bf47a2
Component data improvements & enable
Separated enabling the component from registering it - a component will be always registerd, even if it's disabled
Component data implemented similarily to player data, just kind of better
Bunch of changes, less code repetition
2018-11-11 00:58:18 +01:00
af412a40fd
Channel improvements and fixes
A chat event is no longer required for shouldSendTo() and such
TBMCPlugins/DiscordPlugin#70 is finally kind of fixed - there's a different issue now
2018-11-01 01:20:49 +01:00
5def9344e8
Quick and dirty fix and another fix 2018-10-25 23:50:17 +02:00
e13efa5e65
Some chat msg and user data changes 2018-10-25 14:09:58 +02:00
7ab997ddad
ChatMessage changes
The channel is no longer required for sending a message
All user accounts now store which channel they are in to make things simpler
Added the concept of 'sender converters' which is used to get the CG user which sent a command for example
No longer allowing getAs() for the same user type
2018-10-24 19:33:38 +02:00
ae84994025
Continued refactoring 2018-10-05 22:19:29 +02:00
718d8d073c
Added /member mod command 2018-09-04 21:49:30 +02:00
c523ff7a5b
Added components with deps
Copied from ButtonPresents and extended
@alisolarflare
#48
2018-08-13 13:33:18 +02:00
806550a625
Added silent/loud option to primerestart
Also using Tabs for formatting
2018-08-12 12:28:36 +02:00
cdcf8b9b2e
Fixed some channel IDs
It breaks Discord custom chat sanitizing
2018-08-12 00:27:54 +02:00
4a6f3df783
Fix concurrent mod. on start
A week old change
2018-08-02 21:04:42 +02:00
be6e4acb7e
Added CG user to chat event
SendChatMessage now takes a ChatMessage param (with a builder)
Code cleanup
/schrestart error msg added
Whole plugin update made async (the plugin list)
Javadoc additions
2018-07-12 23:24:38 +02:00
bc24df3840
RandomTeleport moved in
ChunkArchive is NMS
2018-06-27 23:51:49 +02:00
86a2a41511
SendChatMessage refactor, ignoreSenderPermissions
Used for channelcon
2018-06-13 23:45:58 +02:00
a691278ea9
Channel connect fixes
Group ID is now required
2018-06-08 18:51:37 +02:00
c94eaebf5a
Added reminder, more logging
Prime restart reminder
2018-06-01 21:23:08 +02:00
d7accf5885
Fixed /primerestart, member assign
Added handling for missing help text
Added autoassign member role
Handling missing permissions plugin (who knows)
Added unused Essentials dependency
2018-06-01 02:08:20 +02:00
4519d5f64a
Added /primerestart
And started using new plugin updater
#34
2018-05-31 03:07:12 +02:00
7e63ae12e6
Fix Towny rename
Fixed only lowercase working
Started implementing a fix that was already done newer Towny
Yesterday
2018-05-26 11:20:30 +02:00
5d91747e22
Added channel connect event 2018-05-22 01:37:35 +02:00
eb8dff3a41
Fixes I thought were merged 2018-05-15 23:34:34 +02:00
739276e797
PR #39 merged
# Conflicts:
#	ButtonCore/src/main/java/buttondevteam/lib/chat/Channel.java
#	ButtonProcessor/src/main/java/buttondevteam/buttonproc/ButtonProcessor.java
2018-05-15 23:10:59 +02:00
75ab715c6e
Plugin list gen, fixes
It'll generate a plugin list file on each start
#37
2018-05-15 22:44:55 +02:00
a24c4a5e54 Updated plugin updater
TODO!
2018-05-07 23:32:58 +02:00
bdf824e20e Plugin update on shutdown+fromcmd
Fromcmd: whether a message was sent by using a command
Yesterday
2018-05-07 20:01:36 +02:00
eb9deb39b4 Rainbow rooms & [g]->[OOC]
- Added all the rainbow chat rooms
- Global chat renamed to OOC (out-of-characeter)
2018-05-06 00:47:45 +02:00
c1751b8f20 Some stuff I should've committed for a whiile 2017-11-05 03:04:51 +01:00
89fb273714 Fixes, annotation processor works for player cls 2017-08-28 17:02:43 +02:00
59d8cd970e Changed priority levels... 2017-08-18 03:02:04 +02:00
d997042e1a Hopefully fixed channel registration and deploy 2017-08-18 02:27:19 +02:00
1a4f1e5f27 Included Mockito in shaded jar 2017-08-17 17:15:40 +02:00
847e940388 Priority and precision fixes 2017-08-15 03:03:39 +02:00
48d0f76a99 Converted to multimodule, added ann.proc.!
Multimodule projects doesn't solve circular dependencies, but is neat
anyways
2017-08-07 20:39:17 +02:00
fe51136f30 Moved ButtonCore to it's folder 2017-08-07 18:15:37 +02:00