Commit graph

30 commits

Author SHA1 Message Date
Sam
b496a9a805
fix: server status error if motd format contains string instead of array (#3502) 2024-04-26 17:02:55 +01:00
tadhgboyle
0c80570609
Enable StyleCI (#3475)
* Create StyleCI config file

* Disable `phpdoc_separation`

* Apply fixes from StyleCI (#3476)

Co-authored-by: StyleCI Bot <bot@styleci.io>

* style: styleci fixes

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Sam <samerton@users.noreply.github.com>
2024-03-09 11:19:55 +00:00
Supercrafter100
6f6d1cd92a
Add ability to query servers via plugin (#3244)
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
2023-02-09 12:31:20 -08:00
Robin
cfa0331743 Nested extra can be null to
for the record, I have no idea what any of this code does but this fixed an issue in support
2022-08-02 16:43:32 +02:00
Tadhg Boyle
3ff3040e8e
Fix PHPStan 2022-07-06 15:39:30 -07:00
Tadhg Boyle
8f2de9bac7 Check validity of hex code substring before calling hexdec
Without this, we get a bunch of spam in the `other-log.log` file since we did not check if the value is valid before calling hexdec
2022-07-05 22:18:31 -06:00
Tadhg Boyle
4ab19bfebc Fix weird edge case of MOTD 2022-06-16 22:28:58 -06:00
Robin
21825f657a Assume server is not a bedrock server if not specified 2022-06-11 13:00:55 +02:00
Robin
23bd4c9338 Fix a few issues reported by phpstan 2022-05-28 14:31:43 +02:00
Robin
0e79c6def9 Remove $queries from MCQuery 2022-05-28 14:17:01 +02:00
Tadhg Boyle
348fee4abe Fix exception when no extra is sent as server MOTD 2022-05-10 22:20:22 -06:00
Tadhg Boyle
659e4052ad Slight clean of MCQuery multi function 2022-05-08 22:33:15 -06:00
Tadhg Boyle
6da6f9436d Fix #2727 2022-04-30 17:18:13 -07:00
Partydragen
01e4a3e104 Fix player listing on server status 2022-04-24 16:53:22 +02:00
Tadhg Boyle
2c21149a1e
Use i18n for translations (#2658)
* Dependency updates

* Start i18n conversion

* Switch to ellipsis character

* Add Dutch language json

* Remove Dutch PHP language files + fix variables

* Further variable fixes

* WIP i18n Language class conversion

* Convert Cookie Consent module to new language format

* Further progress including timeago translations

* Misc

* Replace {x}

* Replace more {x} usage

* {{time}}

this took way too long

* replace last {x}

* Remove comments

So searching for {x} produces relevant results

* forgot to save

* move to onPageLoad

* Accept both string and int

* types in doc

* Remove unused (broken?) function

* Don't convert to string first

* Last arg doesn't seem to be used anywhere

* Time `{x}` replacements

* Email `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* remove comments (makes searching for "{x}" nicer)

* misc `{x}` replacements

* JS `{x}` replacements

* Cleanup language initialization

* Change language constant + add pluralForm support

* Misc language update things

* Add script to find unused terms

* Check all quote types

* Remove most english translations from non-english languages

* Also match with more args

* Missed some apparently

* Missed some (more) apparently

* Misc work

* Add script to convert *all* language files to json

* Fix language codes

* Remove a lot of unused terms

* Remove a lot more unused terms

* Convert everything to JSON, delete old files, get installer working with new system

* Fix general configuration language dropdown + email messages

* Fix page load time, fix language term `set` method

* Fix discord integration command

* Misc

* Misc

* Uncomment RTL definition

* Misc

* Convert links

* Convert links

* Convert links

* Convert links

* Misc work (bolding, fixes, etc)

* Style fix

* Fix variable

* Fix #2668

* Fix old page load timers

* Fix installer group sync injector error

* Convert integration language terms

* Fix more integration language things

* Re-add upgrade script language things

* Resolve PR comments

* Remove unnecessary date()

* Resolve some PR issues

* Fix endpoint

* Style

* Fix Semantic -> Fomantic

* Fix Semantic -> Fomantic

* Return locale short code, not language id/name

Only the short code is interesting to the API, return short code in user info endpoint just like in the website info endpoint.

Also renamed to locale because it's language + region

* Revert "warn people to not translate old language files"

This reverts commit 690b77afff.

* Fix query when there are no filters

* Update 200-pr12.php

* Update footer.php

* insert time into string using placeholder

* Fix getDisplayname case

* Clean username

* PR suggestions

* Include newly created language in converted languages (migration)

* PR suggestions

* PR suggestions

* Update init.php

* Fix default language

Co-authored-by: samerton <samerton@users.noreply.github.com>
Co-authored-by: Robin <robinslot@hotmail.nl>
Co-authored-by: Robin <robin+git@rkslot.nl>
Co-authored-by: Partydragen <adrian_kili@outlook.com>
2022-04-23 14:27:10 +01:00
Tadhg Boyle
9b054f9cb9 Misc fixes with DTO 2022-04-17 20:09:15 -07:00
Tadhg Boyle
3fdde5028c Convert "modern" MOTD format to legacy colour codes in banner
This lets modern server versions display RGB MOTDs (by converting the RGB value to the closest MC colour code)
2022-02-15 20:55:54 -08:00
Tadhg Boyle
67eaaa9a65 Use MinecraftBanner composer package + fixes related to it 2022-02-15 13:48:14 -08:00
Tadhg Boyle
94e64c1207
Add PHPDocs to core classes for new class docs site (#2602) 2022-02-14 20:48:15 -08:00
Tadhg Boyle
23fc66f06a
Add support for querying Bedrock servers (#2601) 2022-02-12 13:10:39 -08:00
Tadhg Boyle
3718ccf535 Use xPaw Ping as composer dep (Closes #2571) 2022-02-01 21:38:46 -08:00
Tadhg Boyle
4025e7bfa6 Bump PHPStan level to 4 2022-02-01 20:15:35 -08:00
Tadhg Boyle
ad17142a16
Misc cleanup (#2566) 2022-01-15 15:18:05 -08:00
Tadhg
e0133a5cd5 Get PHP-CS to pass! 2021-12-07 22:14:12 -08:00
Tadhg
b1a65c07e5 Fix if statements with common parts 2021-11-04 08:34:53 -07:00
Tadhg
b26fbedd2a remove unneeded default parameter values 2021-11-01 10:11:53 -07:00
Tadhg
6d1bb0ecbb Replace double quotes with single quotes where applicable 2021-10-30 16:25:44 -07:00
Tadhg
a9c678e4d4 convert all array(...) syntax to [...] 2021-10-29 22:00:05 -07:00
Tadhg
bdf6af33ff use 7.4 null operator 2021-10-28 13:14:57 -07:00
Tadhg
805e1e9e27 organize classes into folders + implement new autoloader 2021-10-27 22:26:24 -07:00
Renamed from core/classes/MCQuery.php (Browse further)