Last edited on 23 September 2017 - 05:12 PM by Msging
Hello! Today, I wanted to discuss an idea for the Badlion Client. After programming a little mod, I thought of adding it to the Badlion Client. Well, there isn't a way to do it without creating a thread here about it or asking a community manager about it. The mod itself is rather private and something I don't want to release until I finish a feature. So, I thought of allowing players to add our own features to the client ourselves through a API. This API would allow us programmers to add features that aren't already built into the client itself.So, you might be wondering: What would the API include? Here is a list I've came up with that it could include:
Features it could possibly have: (Up for suggestions to add here)
- Achievements API - Could be used for notifications or something
- GUI API - Create your own inventory or a GUI screen like the options screen to do certain things
- Menu API - Like the ToggleSprint mod. It has it's own custom menu where you can change it's settings.
- Friends API - Communicate with the friends system that will be implemented into the client
- Badlion Discord Server API - Like if a game gets claimed, you can tell your addon to alert you.
- Gradle/Maven - To add dependencies (like a Discord API) to the project automatically
So, how would this thing work? I was thinking similar to how you make plugins for servers. You implement the API into a Java project using either Gradle or Maven and create a class sort of like this:

Now for the Website API. This was suggested a couple years ago, but was not made due to not many people wanting to use it. I've been wanting to use one for certain things like notifications, clan updates, etc. Now, I was thinking it could also be a Java API that anyone can use. Of course, it would need some restrictions like how many requests you can make in a certain time frame. It could work something like this:

Features it could possibly have:
- Listeners that check for new notifications, new UHCs, etc.
- Check player's stats
- Check player's punishments
- Check when a thread has been created
Open for any suggestions!
Posted on 23 September 2017 - 03:55 PM
+1 don't understand it but it sounds smartPosted on 23 September 2017 - 04:21 PM
JustDontDie wrote
So, you might be wondering: What would the API include? Here is a list I've came up with that it could include:
Features it could possibly have: (Up for suggestions to add here)
- Achievements API - Could be used for notifications or something
- GUI API - Create your own inventory or a GUI screen like the options screen to do certain things
- Menu API - Like the ToggleSprint mod. It has it's own custom menu where you can change it's settings.
- Friends API - Communicate with the friends system that will be implemented into the client
- Badlion Discord Server API - Like if a game gets claimed, you can tell your addon to alert you.
- Gradle/Maven - To add dependencies (like a Discord API) to the project automatically
So, how would this thing work? I was thinking similar to how you make plugins for servers. You implement the API into a Java project using either Gradle or Maven and create a class sort of like this:

Now for the Website API. This was suggested a couple years ago, but was not made due to not many people wanting to use it. I've been wanting to use one for certain things like notifications, clan updates, etc. Now, I was thinking it could also be a Java API that anyone can use. Of course, it would need some restrictions like how many requests you can make in a certain time frame. It could work something like this:

Features it could possibly have:
- Listeners that check for new notifications, new UHCs, etc.
- Check player's stats
- Check player's punishments
- Check when a thread has been created
Open for any suggestions!
I think it's going to create security hole for BAC and make unfair averages for the players who will use this feature wich is not the goal of Badlion,
So it's a smart suggestion but -1 for the Badlion client feature but +1 for the suggestions for the website :D
Have a nice day
HashEdits
Last edited on 23 September 2017 - 06:27 PM by JustStayinAlive
HashEdits wrote
JustDontDie wrote...
I think it's going to create security hole for BAC and make unfair averages for the players who will use this feature wich is not the goal of Badlion,
So it's a smart suggestion but -1 for the Badlion client feature but +1 for the suggestions for the website :D
Have a nice day
HashEdits
Hey, could you explain why you think it could create a security hole for BAC? Remember, it is only to make an addon for the Badlion Client. This won't have anything to do with the PvP mechanics or anything that BAC would check for. The API would only contain things that wouldn't trigger BAC.
Posted on 24 September 2017 - 01:15 AM
JustDontDie wrote
HashEdits wrote...
Hey, could you explain why you think it could create a security hole for BAC? Remember, it is only to make an addon for the Badlion Client. This won't have anything to do with the PvP mechanics or anything that BAC would check for. The API would only contain things that wouldn't trigger BAC.
Ok I am gonna try my best to explain you what I think in English :D (as you see I am bad at it), also I am not a developer they are just speculations,
So I think it will create a security hole because adding a API to change things into the client it self will be creating a open door for other modifications and compromise the security of BAC, I think I have said what I think.
And I think the addons it self can be an unfair aventage, i explain myself,
Change the GUI by a more efficient one can be an unfair aventage because it can contain shortcuts to feature who need more actions by using the vanilla GUI.
So your suggestion are good but not on addons, implement it on the BL client can be a good thing :D
Thanks for reading
Ps: if you find mistake in my English please correct me I need to know where are my mistakes to correct them and have a better English, thank you
Posted on 24 September 2017 - 10:23 AM
Meh for the bl client I don't see how an api would be nice and for the website you can just scrape it which is how I made a stats botPosted on 25 September 2017 - 10:43 AM
Nice thinking…but never going to happen.Not how anything is designed.
Sorry buddy.