Advertisement
Guest User

Untitled

a guest
Nov 21st, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 9.54 KB | None | 0 0
  1. package me.timiboyultimate.stonecraft;
  2.  
  3.  
  4. public class Config {
  5.  
  6.     public Stonecraft plugin;
  7.    
  8.     public Config(Stonecraft instance) {
  9.         this.plugin=instance;
  10.     }
  11.    
  12.      int asleather ;
  13.      int asiron;
  14.      int asgold;
  15.      int asdia ;
  16.      int aschain ;
  17.      int asheal ;
  18.      int asfood ;
  19.      
  20.      int fswood ;
  21.      int fsstone ;
  22.      int fsiron;
  23.      int fsgold;
  24.      int fsdia ;
  25.      
  26.      int weather ;
  27.      int time ;
  28.    
  29.    
  30.    
  31.      String deathmsg = "";
  32.      String moinfo = "";
  33.     String moinfogift = "";
  34.      String buyok = "";
  35.      String buyprice = "";
  36.      String Warningsnomoney = "";
  37.      String Warningsarmor = "";
  38.      String Warningssword = "";
  39.      String Warningsnoperm = "";
  40.      String Ingameshoparmor = "";
  41.      String Ingameshopsword = "";
  42.     String Ingameshopgotoarmor = "";
  43.      String Ingameshopgotosword = "";
  44.    
  45.     public void loadConfiguration(){
  46.        
  47.  
  48.          
  49.        
  50.         plugin.getConfig().addDefault("mySQL.Datenbank", "Datenbankname");
  51.         plugin.getConfig().addDefault("mySQL.Benutzername", "Dein Username");
  52.         plugin.getConfig().addDefault("mySQL.Passwort", "********");
  53.      
  54.  
  55.          plugin.getConfig().addDefault("Shop.ArmorShop.Armor.asleather", 110);
  56.          plugin.getConfig().addDefault("Shop.ArmorShop.Armor.asiron", 210);
  57.          plugin.getConfig().addDefault("Shop.ArmorShop.Armor.asgold", 310);
  58.          plugin.getConfig().addDefault("Shop.ArmorShop.Armor.asdia", 410);
  59.          plugin.getConfig().addDefault("Shop.ArmorShop.Armor.aschain", 510);
  60.          
  61.          plugin.getConfig().addDefault("Shop.FightShop.Sword.fswood", 110);
  62.          plugin.getConfig().addDefault("Shop.FightShop.Sword.fsstone", 210);
  63.          plugin.getConfig().addDefault("Shop.FightShop.Sword.fsiron", 510);
  64.          plugin.getConfig().addDefault("Shop.FightShop.Sword.fsgold", 310);
  65.          plugin.getConfig().addDefault("Shop.FightShop.Sword.fsdia", 410);
  66.          
  67.          plugin.getConfig().addDefault("Shop.ArmorShop.Extras.time", 1000);
  68.          plugin.getConfig().addDefault("Shop.ArmorShop.Extras.weather", 1000);
  69.          plugin.getConfig().addDefault("Shop.ArmorShop.Extras.asheal", 100);
  70.          plugin.getConfig().addDefault("Shop.ArmorShop.Extras.asfood", 100);
  71.          
  72.        
  73.        
  74.          
  75.          plugin.getConfig().addDefault("Shop.Msg.DeathMsg",  "Gestorben? Kauf dir ne Rüstung! einfach /asshop oder ein Schwert einfach /fsshop");
  76.          plugin.getConfig().addDefault("Shop.Msg.Moneyinfo.money",  "[Xp Info --> Me] Du hasst: ");
  77.          plugin.getConfig().addDefault("Shop.Msg.Moneyinfo.gift",  "[Xp Info --> Me] Du bekommst: ");
  78.          plugin.getConfig().addDefault("Shop.Msg.Buy.ok",  "Info: Du hast ein Artikel Gekauft!");
  79.          plugin.getConfig().addDefault("Shop.Msg.Buy.price",  "Info: Kosten: ");
  80.          plugin.getConfig().addDefault("Shop.Msg.Warnings.nomoney",  "Info: Du hast nicht genug Geld!");
  81.          plugin.getConfig().addDefault("Shop.Msg.Warnings.armor",   "Achtung: Du hasst ein eine Rüstung an! Lege sie ab!");
  82.          plugin.getConfig().addDefault("Shop.Msg.Warnings.sword",   "Achtung: Du hasst ein Item in deiner Hand. Lege es ab!");
  83.          plugin.getConfig().addDefault("Shop.Msg.Warnings.noperm",   "Info: Der Admin hatt diese funktion Gesperrt!");
  84.          plugin.getConfig().addDefault("Shop.Msg.Ingameshop.armor",  "Rüstung");
  85.          plugin.getConfig().addDefault("Shop.Msg.Ingameshop.sword",  "Schwert");
  86.          plugin.getConfig().addDefault("Shop.Msg.Ingameshop.gotoarmor",  "Brauchst du noch ein Rüstung?");
  87.          plugin.getConfig().addDefault("Shop.Msg.Ingameshop.gotosword",  "Brauchst du noch ein Schwert?");
  88.        
  89.        
  90.        
  91.          
  92.          plugin.getConfig().addDefault("Stonecraft.Msg.1",  "Dein Text");
  93.          plugin.getConfig().addDefault("Stonecraft.Msg.2",  "Dein Text");
  94.          plugin.getConfig().addDefault("Stonecraft.Msg.3",  "Dein Text");
  95.          plugin.getConfig().addDefault("Stonecraft.Msg.4",  "Dein Text");
  96.          plugin.getConfig().addDefault("Stonecraft.Msg.5",  "Dein Text");
  97.          plugin.getConfig().addDefault("Stonecraft.Msg.6",  "Dein Text");
  98.          plugin.getConfig().addDefault("Stonecraft.Msg.7",  "Dein Text");
  99.          plugin.getConfig().addDefault("Stonecraft.Msg.8",  "Dein Text");
  100.          plugin.getConfig().addDefault("Stonecraft.Msg.9",  "Dein Text");
  101.          plugin.getConfig().addDefault("Stonecraft.Msg.10",  "Mein Text ;)");
  102.          
  103.          
  104.        
  105.          
  106.        
  107.          
  108.           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.");
  109.              plugin.getConfig().addDefault("Stonecraft.Reg.Msg2",  "Wenn du das Passwort gefunden hast musst du es so in den Chat eingeben : /passwort");
  110.              plugin.getConfig().addDefault("Stonecraft.Reg.fin",  "Registrierung Abgeschlossen! du bist jetzt:");
  111.              plugin.getConfig().addDefault("Stonecraft.Reg.passfin",  "Das ist das Richtige Passwort!");
  112.              plugin.getConfig().addDefault("Stonecraft.Reg.ch",  "Du kannst aus den Gruppen: Ork (/Ork), Elf (/Elf) und Zwerg (/Zwerg) wŠhlen!");
  113.              plugin.getConfig().addDefault("Stonecraft.Regon",  true);
  114.              plugin.getConfig().addDefault("Stonecraft.Reg.offmsg",  "Der Anmeldevorgeng ist vorrübergehend deaktiviert!");
  115.              plugin.getConfig().addDefault("Stonecraft.Stadt.Ork",  "Taldor");
  116.              plugin.getConfig().addDefault("Stonecraft.Stadt.Zwerg",  "Belgin");
  117.              plugin.getConfig().addDefault("Stonecraft.Stadt.Elf",  "Aldaron");
  118.              
  119.            
  120.              
  121.              
  122.            
  123.          
  124.              
  125.              
  126.              
  127.         plugin.getConfig().options().copyDefaults(true);
  128.  
  129.          
  130.          
  131.          
  132.    
  133.          
  134.              
  135.            
  136.               msg1 = plugin.getConfig().getString("Stonecraft.Msg.1");
  137.               msg2 = plugin.getConfig().getString("Stonecraft.Msg.2");
  138.               msg3 = plugin.getConfig().getString("Stonecraft.Msg.3");
  139.               msg4 = plugin.getConfig().getString("Stonecraft.Msg.4");
  140.               msg5 =plugin.getConfig().getString("Stonecraft.Msg.5");
  141.               msg6 = plugin.getConfig().getString("Stonecraft.Msg.6");
  142.               msg7 = plugin.getConfig().getString("Stonecraft.Msg.7");
  143.               msg8 = plugin.getConfig().getString("Stonecraft.Msg.8");
  144.               msg9 = plugin.getConfig().getString("Stonecraft.Msg.9");
  145.               msg10 =plugin.getConfig().getString("Stonecraft.Msg.10");
  146.  
  147.              
  148.              
  149.              
  150.               mreg1 = plugin.getConfig().getString("Stonecraft.Reg.Msg1");
  151.               mreg2 = plugin.getConfig().getString("Stonecraft.Reg.Msg2");
  152.               mregfin = plugin.getConfig().getString("Stonecraft.Reg.fin");
  153.               mregpassfin = plugin.getConfig().getString("Stonecraft.Reg.passfin");
  154.               mregch = plugin.getConfig().getString("Stonecraft.Reg.ch");
  155.               mregoffmsg = plugin.getConfig().getString("Stonecraft.Reg.offmsg");
  156.               regoff = plugin.getConfig().getBoolean("Stonecraft.Regon");
  157.               stadto = plugin.getConfig().getString("Stonecraft.Stadt.Ork");
  158.               stadtz = plugin.getConfig().getString("Stonecraft.Stadt.Zwerg");
  159.               stadte = plugin.getConfig().getString("Stonecraft.Stadt.Elf");
  160.              
  161.              
  162.              
  163.               asleather = plugin.getConfig().getInt("Shop.ArmorShop.Armor.asleather");
  164.               asiron = plugin.getConfig().getInt("Shop.ArmorShop.Armor.asiron");
  165.               asgold = plugin.getConfig().getInt("Shop.ArmorShop.Armor.asgold");
  166.               asdia = plugin.getConfig().getInt("Shop.ArmorShop.Armor.asdia");
  167.               aschain = plugin.getConfig().getInt("Shop.ArmorShop.Armor.aschain");
  168.              
  169.               fswood = plugin.getConfig().getInt("Shop.FightShop.Sword.fswood");
  170.               fsstone = plugin.getConfig().getInt("Shop.FightShop.Sword.fsstone");
  171.               fsiron = plugin.getConfig().getInt("Shop.FightShop.Sword.fsiron");
  172.               fsgold = plugin.getConfig().getInt("Shop.FightShop.Sword.fsgold");
  173.               fsdia = plugin.getConfig().getInt("Shop.FightShop.Sword.fsdia");
  174.                  
  175.              
  176.               time = plugin.getConfig().getInt("Shop.ArmorShop.Extras.time");
  177.               weather = plugin.getConfig().getInt("Shop.ArmorShop.Extras.weather");
  178.  
  179.               asheal = plugin.getConfig().getInt("Shop.ArmorShop.Extras.asheal");
  180.               asfood = plugin.getConfig().getInt("Shop.ArmorShop.Extras.asfood");
  181.              
  182.            
  183.              
  184.              
  185.              
  186.                  
  187.              
  188.            
  189.                
  190.                   deathmsg = plugin.getConfig().getString("Shop.Msg.DeathMsg");
  191.                   moinfo = plugin.getConfig().getString("Shop.Msg.Moneyinfo.money");
  192.                   moinfogift = plugin.getConfig().getString("Shop.Msg.Moneyinfo.gift");
  193.                   buyok = plugin.getConfig().getString("Shop.Msg.Buy.ok");
  194.                   buyprice = plugin.getConfig().getString("Shop.Msg.Buy.price");
  195.                   Warningsnomoney = plugin.getConfig().getString("Shop.Msg.Warnings.nomoney");
  196.                   Warningsarmor = plugin.getConfig().getString("Shop.Msg.Warnings.armor");
  197.                   Warningssword = plugin.getConfig().getString("Shop.Msg.Warnings.sword");
  198.                   Warningsnoperm = plugin.getConfig().getString("Shop.Msg.Warnings.noperm");
  199.                   Ingameshoparmor = plugin.getConfig().getString("Shop.Msg.Ingameshop.armor");
  200.                   Ingameshopsword = plugin.getConfig().getString("Shop.Msg.Ingameshop.sword");
  201.                   Ingameshopgotoarmor = plugin.getConfig().getString("Shop.Msg.Ingameshop.gotoarmor");
  202.                   Ingameshopgotosword = plugin.getConfig().getString("Shop.Msg.Ingameshop.gotosword");
  203.            
  204.            
  205.                    
  206.              
  207. }
  208.     String msg1 = "";
  209.     String msg2 = "";
  210.     String msg3 = "";
  211.     String msg4 = "";
  212.     String msg5 = "";
  213.     String msg6 = "";
  214.     String msg7 = "";
  215.     String msg8 = "";
  216.     String msg9 = "";
  217.     String msg10 = "";
  218.    
  219.     String mreg1 = "";
  220.     String mreg2 = "";
  221.     String mregfin= "";
  222.     String mregpassfin= "";
  223.     String mregch = "";
  224.     String mregoffmsg = "";
  225.     boolean regoff = true;
  226.  
  227.    
  228.     String stadto = "";
  229.     String stadte = "";
  230.     String stadtz = "";
  231.    
  232.    
  233.    
  234.    
  235.     String playerName;
  236.    
  237.    
  238. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement