Comments (4)
Hey, I added little api to lgsl7 branch https://github.com/tltneon/lgsl/tree/lgsl7
To get data from api you need:
- Add to lgsl_config.php
$lgsl_config['api'] = true;
- Open http://lgsl7.test/src/lgsl_feed.php
- Get what you need. e.g.
[{"name":"[Kgr.GD]-alte-Hasen !!! all Server Bans removed !!!","ip":"104.238.159.193","port":"7757","game":"redorchestra","map":"RO-Bondarevo-remastered-v3","players":0,"maxplayers":26,"online":true},{"name":"Pecypc-CEPBEP (Resource-SERVER)+3 perks","ip":"185.97.254.214","port":"7907","game":"killingfloor","map":"KF-Farm","players":0,"maxplayers":20,"online":true},{"name":"Punaportti","ip":"5.9.50.39","port":"34297","game":"rfactor","map":"Pello20212","players":0,"maxplayers":10,"online":true},{"name":"~[FGS]Wunderland~ ALTFIRE 2014","ip":"207.180.246.62","port":"7790","game":"deusex","map":"DXMP_Frequency","players":0,"maxplayers":20,"online":true},{"name":"","ip":"141.95.54.12","port":"7777","game":"ut3","map":"--","players":0,"maxplayers":0,"online":false},{"name":"[www.utbr.cf] The Brazilian UT3 Server","ip":"168.138.135.61","port":"7777","game":"ut3","map":"DM-ShangriLa","players":0,"maxplayers":10,"online":true}]
from lgsl.
This is perfect! Amazing how fast you implemented it, thank you!
from lgsl.
Hi @MnkyArts
LGSL now have an api-like feeding page that allow you to get one server's data. Example: https://www.fungameraltersheim.de/lgsl-master/lgsl_files/lgsl_feed.php?type=ts3&ip=213.239.213.230&c_port=9987&q_port=10011&request=s
Or you want to get all the servers in a row?
from lgsl.
Hey @tltneon,
yes i was talking about all servers in the system.
i played a bit with the system and build something like this:
{ "name": "A Minecraft Server", "ip": "127.0.0.1", "port": "25565", "game": "minecraft", "map": "world", "players": "0", "maxplayers": "20", "comment": "", "status": "1" }, { "name": "A Minecraft Server 2", "ip": "127.0.0.1", "port": "25566", "game": "minecraft", "map": "world", "players": "0", "maxplayers": "20", "comment": "", "status": "1" },
but would be cool to have this as a feature in the future :)
from lgsl.
Related Issues (20)
- LGSL7: lgsl_protocol.php HOT 2
- LGSL7: mysqli_sql_exception HOT 1
- e107 version for LGSL 6.2.0 available HOT 1
- minecraft new versions HOT 4
- Erro: lgsl_protocol HOT 1
- $server->lgsl_live_query('sep') not working in the right way HOT 4
- pagination not working HOT 6
- Add VRising support HOT 2
- FiveM Issue: Undefined variable $server HOT 3
- + palworld HOT 24
- Servers Rank HOT 2
- [Images] Can't get charts.php and userbar.php to work + svg flags HOT 8
- (SEO) Canonical URLs for Multi-LGSL + userbar.php + charts.php
- Starbound in lgsl 7
- Issue with SAMP $buffer->show() should not be there ? HOT 1
- Arma 4 support HOT 1
- TS3 error when using custom query port. HOT 3
- Issue with commit effcb5d
- Killing Floor 2 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lgsl.