Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

Sachen aus einer txt (Webspace) als ganz normale Void ausführen?

MasterOf13FPS

Administrator
Staff member
Administrator
MasterOf13FPS
Joined
Jul 11, 2020
Messages
0
Reaction score
25
Points
0
Hey :D
Ich hab halt so ein Config System... Das benutzt man ganz normal in ner Methode z.b. mit
ConfigSystem.setString("lol", "lol2") ist ja auch egal ne :D
Also ich möchte halt per Command dann so: ".config gomme" machen und er öffnet dann auf meinem Webspace die txt "gomme" und liest die aus.
Darin steht dann einfach sowas wie

ConfigSystem.setString("lol", "lol2");
ConfigSystem.setString("21", "321");
ConfigSystem.setString("2", "123");

Das soll er einfach ganz normal als void ausführen. Geht das?
 
also ich würde die Settings nicht so auf der Website speichern! Ich würde sie so Speicher: lol:lol2
das kennst du ja aus einem Keybind Manager du holst dir Line für line aus der txt der Website dann splitest du den String und machst das so: (Der Code ist von meinen Alt Gen)
Website:

lol:lol2
...


Java:
Code:
try{
               Scanner scanner = new Scanner(new URL("www.google.de").openStream());
               while(scanner.hasNextLine()){
                 
                 String line3 = scanner.nextLine().split(":")[0]; //lol
                 String line2 = scanner.nextLine().split(":")[1]; //lol2
                 ConfigSystem.setString(line3, line2);
              
               }
               scanner.close();
               }catch(Exception ex){
                  ex.printStackTrace();
               }

Musst halt noch den Link ändern!


Bitte tut in den Client rein das das von mir ist xDD


nein Spaß
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top