Many modders wish they could add an update checker to their mods but just don't know how. To help them we developed The Mod Updater API. It simple and easy to use. All you have to do is have control of some text on at least one webpage (even just a forum post) and know how to use java.
1. In one of you files type "modUpdater.Updater.Subscribe()". This should only execute on start up of your mod.
2. In the parentheses put an instances of your main class in class form([class name].getClass()). If your are in your main class just type "this.getClass()".
3. For the second argument put the web address you want it to look at. It will scan the entire page, including the html code, to try and find a match for the mod version number you have listed with Forge. If it finds it it return updated. If not then it returns out of date. Due to the fact that it scan for the text anywhere even a lone mod post that you edit can serve as the server.
4. For the third argument put the message that you want to appear when the mod is out of date. Notes on additional information that the API can put in the message can be found in the subscribe methods javadoc.
5. For the fourth argument put the message that you want to appear the mod is up to date. Again additional info can be found in the javadoc.
Ex: modUpdater.Updater.Subscribe(this.getClass(), "http://weebly.com/xxxx", "$2 v$1 for $3 is out of date.", "$2 v$1 for #3 is up to date.")
Installation guide:
1. Install Forge API.
2. Extract the mod into the minecraft.jar. (found in .minecraft/bin)
3. Delete META-INF.
Change log:
v1.0 - 12/14/12 - Original publish.
Planned updates:
It's a secret.
The work provided above is provided under the GNU GENERAL PUBLIC LICENSE.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumMany modders wish they could add an update checker to their mods but just don't know how. To help them we developed The Mod Updater API. It simple and easy to use. All you have to do is have control of some text on at least one webpage (even just a forum post) and know how to use java.
Requires Forge API
Released v1.0 - Download[1.4.5]
Source v1.0 - GitHub
Pictures
How to use:
2. In the parentheses put an instances of your main class in class form([class name].getClass()). If your are in your main class just type "this.getClass()".
3. For the second argument put the web address you want it to look at. It will scan the entire page, including the html code, to try and find a match for the mod version number you have listed with Forge. If it finds it it return updated. If not then it returns out of date. Due to the fact that it scan for the text anywhere even a lone mod post that you edit can serve as the server.
4. For the third argument put the message that you want to appear when the mod is out of date. Notes on additional information that the API can put in the message can be found in the subscribe methods javadoc.
5. For the fourth argument put the message that you want to appear the mod is up to date. Again additional info can be found in the javadoc.
Ex: modUpdater.Updater.Subscribe(this.getClass(), "http://weebly.com/xxxx", "$2 v$1 for $3 is out of date.", "$2 v$1 for #3 is up to date.")
Installation guide:
2. Extract the mod into the minecraft.jar. (found in .minecraft/bin)
3. Delete META-INF.
Change log:
Planned updates:
The work provided above is provided under the GNU GENERAL PUBLIC LICENSE.
"Say what you want and be who you are because those that care don't matter and those that matter don't care." -Dr. Seuss.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium"Say what you want and be who you are because those that care don't matter and those that matter don't care." -Dr. Seuss.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium"Say what you want and be who you are because those that care don't matter and those that matter don't care." -Dr. Seuss.