Commit Graph

3251 Commits

Author SHA1 Message Date
Rsl1122
89bc90d0b5 Fix bad merge 2019-03-31 15:40:56 +03:00
Risto Lahtela
d47c310a70
Merge branch 'development' into extension-api 2019-03-31 15:10:20 +03:00
Rsl1122
50727e92bb '(Legacy)' added to PluginData tabs 2019-03-31 15:05:55 +03:00
Rsl1122
0108050bb8 TableContainer no longer displays 'null' 2019-03-31 15:05:17 +03:00
Rsl1122
be0375c385 Fixed Aggregate label issues 2019-03-31 14:59:24 +03:00
Rsl1122
7002783dac Fixed Transaction#executeOther when using dbType 2019-03-31 14:58:27 +03:00
Rsl1122
9b29edd16e Fix some code smells 2019-03-31 14:20:10 +03:00
Rsl1122
abd6b04b8d Fixed 'sponge' module test errors 2019-03-31 14:04:06 +03:00
Rsl1122
e835d61aef Updated Essentials extension 2019-03-31 13:51:49 +03:00
Rsl1122
49c1660134 Updated extension versions 2019-03-31 13:15:18 +03:00
Rsl1122
ee795b7702 CallEvents.SERVER_PERIODICAL calls 2019-03-31 12:46:26 +03:00
Rsl1122
4fe85d95ed CallEvents.SERVER_EXTENSION_REGISTER call 2019-03-31 12:36:57 +03:00
Rsl1122
adb0a93713 Implemented Extension player method calls 2019-03-31 12:36:01 +03:00
Rsl1122
58e7534501 Implemented Caller and CallEvents filtering 2019-03-31 12:26:22 +03:00
Rsl1122
bb2be54604 More flexible definition of calling Extension methods 2019-03-31 12:12:59 +03:00
Rsl1122
ffce4c9e32 Removed update booleans from PluginInfo 2019-03-31 11:42:27 +03:00
Rsl1122
5928912a54 Registered Sponge Economy Extension 2019-03-30 16:45:54 +02:00
Rsl1122
731d80f7af Registered Essentials extension 2019-03-30 16:04:15 +02:00
Rsl1122
dfc30ef821 Removed date values from number aggregate query 2019-03-30 16:01:07 +02:00
Rsl1122
4c9488c859 Network ExtensionData visualization 2019-03-30 12:18:37 +02:00
Rsl1122
2ad5f979f6 Server ExtensionData visualization 2019-03-30 12:16:57 +02:00
Rsl1122
09f7801934 More Aggregate Queries 2019-03-30 11:59:31 +02:00
Rsl1122
7ca0c04365 ExtensionServerDataQuery + BooleanAggregateQuery:
- Queries plan_extension_server_values

- Queries plan_extension_player_values for aggregates
2019-03-30 11:29:43 +02:00
Rsl1122
c8687b7c48 Fixed ConfigReader sometimes adding empty string to a null value. 2019-03-30 11:04:51 +02:00
Rsl1122
18d6b862b7 ExtensionServerData class 2019-03-30 09:19:23 +02:00
Rsl1122
142cea7f6b Moved some results classes around 2019-03-30 09:17:49 +02:00
Rsl1122
d98a51b632 Storage for extension server data 2019-03-29 11:32:32 +02:00
Rsl1122
db90410487 Gatherer methods for server providers 2019-03-29 11:16:35 +02:00
Rsl1122
ed4dff350a Color replacement to StringProvider values 2019-03-29 10:03:40 +02:00
Rsl1122
b288182e42 Fix SQL error introduced when 'hidden' was added 2019-03-27 14:46:44 +02:00
Rsl1122
001b5a6cc7 Fixing some new code smells:
Critical:
- String literal duplication fixed in a few places
- Cognitive complexity reduced in BooleanProviderValueGatherer

Major:
- Called Optional#isPresent before accessing value
  16 instances in ProviderTransactions
- private constructor to Extension tables
- Missing deprecated tags to deprecated plugin tab stuff
- Unused class variable removal
- Throw dedicated exceptions in ServerServerInfo
- Unused method removal

Minor:
- Renamed 'API' field to 'service' in ExtensionService
- Unused variable removal
2019-03-27 14:30:53 +02:00
Rsl1122
b70491a60d [#982] Removed 2 instances of ';' in response header 2019-03-27 09:40:33 +02:00
Rsl1122
2d228dedea Registered DiscordSRV extension 2019-03-26 21:51:55 +02:00
Rsl1122
b1d75a1d4a Bump extension versions 2019-03-26 21:04:48 +02:00
Rsl1122
4ea45ad9d9 Implemented BooleanProvider hidden parameter 2019-03-26 21:00:18 +02:00
Rsl1122
3ab6e31d85 [#982] Removed ';' from request header 2019-03-26 20:49:01 +02:00
Rsl1122
29e9f0483b Added comment about nested query 2019-03-26 20:41:04 +02:00
Rsl1122
961b8caae8 Added missing "as ..." to the query:
Attempts to fix
"Every derived table must have its own alias"
2019-03-26 14:23:04 +02:00
Rsl1122
40075f697c Nest query since MySQL can not select and update:
More information
https://stackoverflow.com/a/9843719

Attempts to fix:
'You can't specify target table 'plan_extension_user_values' for update
in FROM clause'
2019-03-26 14:16:17 +02:00
Rsl1122
c1a6fdd6fc Reverse table names since MySQL can not select and update:
More information
https://stackoverflow.com/questions/4429319/you-cant-specify-target-table-for-update-in-from-clause

Attempts to fix:
'You can't specify target table 'plan_extension_user_values' for update
in FROM clause'
2019-03-26 13:51:42 +02:00
Rsl1122
47a6a9b2aa Transaction for removing unsatisfied Conditional data:
This is one of the most complex queries I have made.

- Select all fulfilled conditions for all players (conditionName when
  true and not_conditionName when false)
- Left join with player value & provider tables when uuids match, and
  when condition matches a condition in the query above.
- Filter the join query for values where the condition did not match
  any provided condition in the join (Is null)
- Delete all player values with IDs that are returned by the left join
  query after filtering

In addition:
- Added test for the transaction
- Added extension data removal to RemoveEverythingTransaction
- Added unregister method to ExtensionService
2019-03-26 12:22:57 +02:00
Rsl1122
09ac2dce09 Registered BanManager Extension 2019-03-24 17:37:32 +02:00
Rsl1122
c77ec3fd79 Added flow for Negated conditions
Negated conditions' names are prefixed with not_

This allows checking against negated Conditionals and does not need
adding more table rows.
2019-03-24 16:53:51 +02:00
Rsl1122
91bb5bf31b Extract method call booleans from PluginInfo 2019-03-24 15:59:54 +02:00
Rsl1122
f73cef8587 Bump extension API to 0.0.2 2019-03-24 15:53:20 +02:00
Rsl1122
0be153d03e Added booleans to PluginInfo for controlling method calls. 2019-03-24 15:52:32 +02:00
Rsl1122
600e90873e Added Conditional#negated 2019-03-24 15:34:58 +02:00
Rsl1122
2b620f97f1 Added BooleanProvider#hidden 2019-03-24 15:34:45 +02:00
Rsl1122
60f5571e42 Registered AdvancedBan extension 2019-03-24 13:46:11 +02:00
Rsl1122
099330ebd7 DataExtension API player page plugin tab generation 2019-03-24 12:28:13 +02:00