Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.timiboyultimate.stonecraft;
- public class Config {
- public Stonecraft plugin;
- public Config(Stonecraft instance) {
- this.plugin=instance;
- }
- int asleather ;
- int asiron;
- int asgold;
- int asdia ;
- int aschain ;
- int asheal ;
- int asfood ;
- int fswood ;
- int fsstone ;
- int fsiron;
- int fsgold;
- int fsdia ;
- int weather ;
- int time ;
- String deathmsg = "";
- String moinfo = "";
- String moinfogift = "";
- String buyok = "";
- String buyprice = "";
- String Warningsnomoney = "";
- String Warningsarmor = "";
- String Warningssword = "";
- String Warningsnoperm = "";
- String Ingameshoparmor = "";
- String Ingameshopsword = "";
- String Ingameshopgotoarmor = "";
- String Ingameshopgotosword = "";
- public void loadConfiguration(){
- plugin.getConfig().addDefault("mySQL.Datenbank", "Datenbankname");
- plugin.getConfig().addDefault("mySQL.Benutzername", "Dein Username");
- plugin.getConfig().addDefault("mySQL.Passwort", "********");
- plugin.getConfig().addDefault("Shop.ArmorShop.Armor.asleather", 110);
- plugin.getConfig().addDefault("Shop.ArmorShop.Armor.asiron", 210);
- plugin.getConfig().addDefault("Shop.ArmorShop.Armor.asgold", 310);
- plugin.getConfig().addDefault("Shop.ArmorShop.Armor.asdia", 410);
- plugin.getConfig().addDefault("Shop.ArmorShop.Armor.aschain", 510);
- plugin.getConfig().addDefault("Shop.FightShop.Sword.fswood", 110);
- plugin.getConfig().addDefault("Shop.FightShop.Sword.fsstone", 210);
- plugin.getConfig().addDefault("Shop.FightShop.Sword.fsiron", 510);
- plugin.getConfig().addDefault("Shop.FightShop.Sword.fsgold", 310);
- plugin.getConfig().addDefault("Shop.FightShop.Sword.fsdia", 410);
- plugin.getConfig().addDefault("Shop.ArmorShop.Extras.time", 1000);
- plugin.getConfig().addDefault("Shop.ArmorShop.Extras.weather", 1000);
- plugin.getConfig().addDefault("Shop.ArmorShop.Extras.asheal", 100);
- plugin.getConfig().addDefault("Shop.ArmorShop.Extras.asfood", 100);
- plugin.getConfig().addDefault("Shop.Msg.DeathMsg", "Gestorben? Kauf dir ne Rüstung! einfach /asshop oder ein Schwert einfach /fsshop");
- plugin.getConfig().addDefault("Shop.Msg.Moneyinfo.money", "[Xp Info --> Me] Du hasst: ");
- plugin.getConfig().addDefault("Shop.Msg.Moneyinfo.gift", "[Xp Info --> Me] Du bekommst: ");
- plugin.getConfig().addDefault("Shop.Msg.Buy.ok", "Info: Du hast ein Artikel Gekauft!");
- plugin.getConfig().addDefault("Shop.Msg.Buy.price", "Info: Kosten: ");
- plugin.getConfig().addDefault("Shop.Msg.Warnings.nomoney", "Info: Du hast nicht genug Geld!");
- plugin.getConfig().addDefault("Shop.Msg.Warnings.armor", "Achtung: Du hasst ein eine Rüstung an! Lege sie ab!");
- plugin.getConfig().addDefault("Shop.Msg.Warnings.sword", "Achtung: Du hasst ein Item in deiner Hand. Lege es ab!");
- plugin.getConfig().addDefault("Shop.Msg.Warnings.noperm", "Info: Der Admin hatt diese funktion Gesperrt!");
- plugin.getConfig().addDefault("Shop.Msg.Ingameshop.armor", "Rüstung");
- plugin.getConfig().addDefault("Shop.Msg.Ingameshop.sword", "Schwert");
- plugin.getConfig().addDefault("Shop.Msg.Ingameshop.gotoarmor", "Brauchst du noch ein Rüstung?");
- plugin.getConfig().addDefault("Shop.Msg.Ingameshop.gotosword", "Brauchst du noch ein Schwert?");
- plugin.getConfig().addDefault("Stonecraft.Msg.1", "Dein Text");
- plugin.getConfig().addDefault("Stonecraft.Msg.2", "Dein Text");
- plugin.getConfig().addDefault("Stonecraft.Msg.3", "Dein Text");
- plugin.getConfig().addDefault("Stonecraft.Msg.4", "Dein Text");
- plugin.getConfig().addDefault("Stonecraft.Msg.5", "Dein Text");
- plugin.getConfig().addDefault("Stonecraft.Msg.6", "Dein Text");
- plugin.getConfig().addDefault("Stonecraft.Msg.7", "Dein Text");
- plugin.getConfig().addDefault("Stonecraft.Msg.8", "Dein Text");
- plugin.getConfig().addDefault("Stonecraft.Msg.9", "Dein Text");
- plugin.getConfig().addDefault("Stonecraft.Msg.10", "Mein Text ;)");
- plugin.getConfig().addDefault("Stonecraft.Reg.Msg1", "Geh auf www.Stonecraft.de.ht und klicke oben auf 'Regeln'. Diese Seite musst du dann durchlesen, und das versteckte Passwort finden.");
- plugin.getConfig().addDefault("Stonecraft.Reg.Msg2", "Wenn du das Passwort gefunden hast musst du es so in den Chat eingeben : /passwort");
- plugin.getConfig().addDefault("Stonecraft.Reg.fin", "Registrierung Abgeschlossen! du bist jetzt:");
- plugin.getConfig().addDefault("Stonecraft.Reg.passfin", "Das ist das Richtige Passwort!");
- plugin.getConfig().addDefault("Stonecraft.Reg.ch", "Du kannst aus den Gruppen: Ork (/Ork), Elf (/Elf) und Zwerg (/Zwerg) wŠhlen!");
- plugin.getConfig().addDefault("Stonecraft.Regon", true);
- plugin.getConfig().addDefault("Stonecraft.Reg.offmsg", "Der Anmeldevorgeng ist vorrübergehend deaktiviert!");
- plugin.getConfig().addDefault("Stonecraft.Stadt.Ork", "Taldor");
- plugin.getConfig().addDefault("Stonecraft.Stadt.Zwerg", "Belgin");
- plugin.getConfig().addDefault("Stonecraft.Stadt.Elf", "Aldaron");
- plugin.getConfig().options().copyDefaults(true);
- msg1 = plugin.getConfig().getString("Stonecraft.Msg.1");
- msg2 = plugin.getConfig().getString("Stonecraft.Msg.2");
- msg3 = plugin.getConfig().getString("Stonecraft.Msg.3");
- msg4 = plugin.getConfig().getString("Stonecraft.Msg.4");
- msg5 =plugin.getConfig().getString("Stonecraft.Msg.5");
- msg6 = plugin.getConfig().getString("Stonecraft.Msg.6");
- msg7 = plugin.getConfig().getString("Stonecraft.Msg.7");
- msg8 = plugin.getConfig().getString("Stonecraft.Msg.8");
- msg9 = plugin.getConfig().getString("Stonecraft.Msg.9");
- msg10 =plugin.getConfig().getString("Stonecraft.Msg.10");
- mreg1 = plugin.getConfig().getString("Stonecraft.Reg.Msg1");
- mreg2 = plugin.getConfig().getString("Stonecraft.Reg.Msg2");
- mregfin = plugin.getConfig().getString("Stonecraft.Reg.fin");
- mregpassfin = plugin.getConfig().getString("Stonecraft.Reg.passfin");
- mregch = plugin.getConfig().getString("Stonecraft.Reg.ch");
- mregoffmsg = plugin.getConfig().getString("Stonecraft.Reg.offmsg");
- regoff = plugin.getConfig().getBoolean("Stonecraft.Regon");
- stadto = plugin.getConfig().getString("Stonecraft.Stadt.Ork");
- stadtz = plugin.getConfig().getString("Stonecraft.Stadt.Zwerg");
- stadte = plugin.getConfig().getString("Stonecraft.Stadt.Elf");
- asleather = plugin.getConfig().getInt("Shop.ArmorShop.Armor.asleather");
- asiron = plugin.getConfig().getInt("Shop.ArmorShop.Armor.asiron");
- asgold = plugin.getConfig().getInt("Shop.ArmorShop.Armor.asgold");
- asdia = plugin.getConfig().getInt("Shop.ArmorShop.Armor.asdia");
- aschain = plugin.getConfig().getInt("Shop.ArmorShop.Armor.aschain");
- fswood = plugin.getConfig().getInt("Shop.FightShop.Sword.fswood");
- fsstone = plugin.getConfig().getInt("Shop.FightShop.Sword.fsstone");
- fsiron = plugin.getConfig().getInt("Shop.FightShop.Sword.fsiron");
- fsgold = plugin.getConfig().getInt("Shop.FightShop.Sword.fsgold");
- fsdia = plugin.getConfig().getInt("Shop.FightShop.Sword.fsdia");
- time = plugin.getConfig().getInt("Shop.ArmorShop.Extras.time");
- weather = plugin.getConfig().getInt("Shop.ArmorShop.Extras.weather");
- asheal = plugin.getConfig().getInt("Shop.ArmorShop.Extras.asheal");
- asfood = plugin.getConfig().getInt("Shop.ArmorShop.Extras.asfood");
- deathmsg = plugin.getConfig().getString("Shop.Msg.DeathMsg");
- moinfo = plugin.getConfig().getString("Shop.Msg.Moneyinfo.money");
- moinfogift = plugin.getConfig().getString("Shop.Msg.Moneyinfo.gift");
- buyok = plugin.getConfig().getString("Shop.Msg.Buy.ok");
- buyprice = plugin.getConfig().getString("Shop.Msg.Buy.price");
- Warningsnomoney = plugin.getConfig().getString("Shop.Msg.Warnings.nomoney");
- Warningsarmor = plugin.getConfig().getString("Shop.Msg.Warnings.armor");
- Warningssword = plugin.getConfig().getString("Shop.Msg.Warnings.sword");
- Warningsnoperm = plugin.getConfig().getString("Shop.Msg.Warnings.noperm");
- Ingameshoparmor = plugin.getConfig().getString("Shop.Msg.Ingameshop.armor");
- Ingameshopsword = plugin.getConfig().getString("Shop.Msg.Ingameshop.sword");
- Ingameshopgotoarmor = plugin.getConfig().getString("Shop.Msg.Ingameshop.gotoarmor");
- Ingameshopgotosword = plugin.getConfig().getString("Shop.Msg.Ingameshop.gotosword");
- }
- String msg1 = "";
- String msg2 = "";
- String msg3 = "";
- String msg4 = "";
- String msg5 = "";
- String msg6 = "";
- String msg7 = "";
- String msg8 = "";
- String msg9 = "";
- String msg10 = "";
- String mreg1 = "";
- String mreg2 = "";
- String mregfin= "";
- String mregpassfin= "";
- String mregch = "";
- String mregoffmsg = "";
- boolean regoff = true;
- String stadto = "";
- String stadte = "";
- String stadtz = "";
- String playerName;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement