Commit graph

85 commits

Author SHA1 Message Date
ce29422177
Merge master to dev 2019-04-25 15:16:14 +02:00
4132a33037 Perm changes 2019-04-17 13:52:55 +02:00
aec9682b2a Subcommand perm group 2019-04-15 15:37:40 +02:00
c8067257f9 Implemented config & doc pregen
#59
The doc gen works
2019-04-08 12:46:47 +02:00
03eb8d480a
Don't deploy sources 2019-03-30 23:48:50 +01:00
f8fd481f46
Fixed restart cmd & added optional primitive support
I mean, the param is optional, not the support
Also sending broadcasts to the console unless MC is excluded
Also added toString() method to ConfigData
2019-03-19 14:33:23 +01:00
9ea811ba40
Number fix, added varargs support for cmds
Added support for int conversion
Varargs take... a variable amount of args
Command error handling (less lines in stack traces)
2019-03-16 14:31:26 +01:00
0d5ca5a9af
Command improvements, number converter
Setting to modOnly if any of the superclasses are modOnly
Re-added support for command path inheritance
getHelpText() for a particular command
Subcommands are properly printed across classes now
Using a general number converter for both the config and commands
2019-03-16 02:57:45 +01:00
70cabfaa81
Reload msg, old perm check, Player cmd fix 2019-03-14 16:27:22 +01:00
c62424389f
A fix and another 2019-03-14 00:40:40 +01:00
25b9caa903 Implemented config save and reload
Always caching config value if it hasn't been cached
2019-03-13 13:47:49 +01:00
7289385a33 Automatic config saving 2019-03-11 16:50:24 +01:00
9c15d0ffff
Chat handler improvements and config doc gen
Configuration documentation generation
2019-03-09 22:57:38 +01:00
9620ae44f6
Config fix
Saving primitive defaults even if def is null
2019-03-09 01:51:13 +01:00
138259412f
Config and command fixes/improvements
Default value for config maps added
Added support for array types in configs and handling null in setting
Added support for TextArg annotation
Allowing to override the command path
Fixed optional argument detection in the annotation processor ("Optional" --> "OptionalArg")
2019-03-08 22:17:49 +01:00
7fd422136b Added getConfigMap() method 2019-03-06 15:19:36 +01:00
f875985aa9
Moved the MC chat handler here
And gitignore is moved as well
The chat handler doesn't interfere with displaying the chat, that's still handled by the chat plugin
2019-03-02 18:56:01 +01:00
fab2b5819d
Moved Votifier reward here, fixes
Checking if Towny or Votifier is present
2019-03-01 17:52:45 +01:00
0cdfcb9ff4 Restart impr. 2019-02-27 16:39:45 +01:00
e4f5850ad6
Component stuff, command stuff
Made the components return correctly-typed plugins
Added support for showing commands
Moved the subcommands and paramconverters to the base class
2019-02-22 00:40:11 +01:00
d19936309f Added Maven plugin versions 2019-02-20 15:20:32 +01:00
9022d87dc4 Adding project files 2019-02-20 13:39:43 +01:00
95796a1b3e
Command fix, using the brtoggles
DiscordPlugin#89
Started #60
Should have committed this earlier
2019-02-17 02:22:06 +01:00
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