inital commit

This commit is contained in:
Laura
2026-01-18 15:02:41 +01:00
commit f1c858bf5f
15 changed files with 506 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
# HomesAPI
### initialisierung des Basis API Codes
```java
public void onEnable(){
Bansystem bansystem = new Bansystem();
bansystem.enableAPI("Benutzer","Passwort","Host","Datenbank");
ban = bansystem.getBan();
}
```
## Verwendung des Home Systems:
### erstellen eines Homes
````java
Homes home;
public void addHome(PlayerHome p){
//erstellt anhand der PlayerHome informationen ein Home
home.createNewHome(p);
}
````
### alle Homes eines Spielers holen
````java
Homes home;
public ArrayList<String> getHomes{
ArrayList<String> homes = new ArrayList<>();
//erstellt eine ArrayList mit den HomeNames
home.getPlayerHome.forEach(h -> {homes.add(h.getName)});
return homes;
}
````
### ein Home eines Spielers anhand des Namens holen
````java
Homes home;
public String getHomeWorld(String name){
home.getHomeByName(name);
return home.getWorld;
}
````