08.06.2014, 11:53
(
Last edited by 123marvin123; 08/06/2014 at 01:50 PM.
)
Dealership plugin for shoebill
Powered by:
[ame]http://www.youtube.com/watch?v=Au9CRYxMFBU[/ame]
First: This is a plugin for Shoebill, and can't be used with Pawn-Gamemodes at this time.Powered by:
[ame]http://www.youtube.com/watch?v=Au9CRYxMFBU[/ame]
Features:
- Written in Java
- Dialogs as main interface
- Customize plugin in your gamemode
- Vehiclelicenses which will expire
- Vehiclelicenses can be added in the gamemode
- MySQL
- Open Source (GitHub)
- Multi-Language (German, English, Simplified chinese)
- It's faster then Pawn
- Detailed errors (Exceptions) at runtime
- Fast and easy development because of Java
- Your server needs to use the Shoebill API
- You can download the .jar file on the Jenkins Server, or you get the artifacts with maven.
- If you want to use Maven, you need to add the following code to your pom.xml:
Code:
<dependency> <groupId>org.marvin</groupId> <artifactId>dealership</artifactId> <version>0.1-SNAPSHOT</version> <type>jar</type> <scope>compile</scope> </dependency>
- You get the DealershipPlugin Instance:
Code:
private DealershipPlugin dealershipPlugin; dealershipPlugin = Shoebill.get().getResourceManager().getPlugin(DealershipPlugin.class);
Code:
dealershipPlugin.getBuyableLicenses().add(new BuyableVehicleLicense(411, 12500, 5)); //Adds a license for the vehicle 'Infernus' which will cost 12.500$ and will be valid for 5 days.
Code:
dealershipPlugin.setAddMoneyFunction((player, integer) -> { player.giveMoney(integer); //Or own function to set server money }); dealershipPlugin.setMoneyGetter(player -> player.getMoney()); //Or own function
Code:
dealershipPlugin.setPlayerLanguage(player, "DEU"); dealershipPlugin.setPlayerLanguage(player, "ENG"); //etc. //Or show him selection dialog: dealershipPlugin.getShowLanguageDialog().accept(player);
- mk124 for the translation & the beta testing