Skip to content

Commit

Permalink
09-09-Sat 04:57
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostAndry committed Sep 9, 2023
1 parent 760c5b5 commit d3d9ecb
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 64 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId>
<artifactId>spigot-api</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,15 @@ public void execute(CommandSender sender, String[] args) {
Functions.removeHolo(name);
});
return;
} else if (args[0].equalsIgnoreCase("addlines")) {



} else if (args[0].equalsIgnoreCase("removeline")){
//
}


/*
for (int i = 1; i < args.length; i++) {
player.sendMessage(args[i]);
Expand Down
10 changes: 9 additions & 1 deletion src/main/java/me/ghostdevelopment/kore/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,15 @@ public static void addLines(String name, List<String> lines){

String path = "holograms."+name+".";

StorageFile.getFile().set(path+".lines", lines);
List<String> cfgLines = new ArrayList<>();

cfgLines = StorageFile.getFile().getStringList(path+".lines");

for (String line : lines){
cfgLines.add(line);
}

StorageFile.getFile().set(path+".lines", cfgLines);
StorageFile.save();

}
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ killmobs:
spawnmob:
enabled: true
async: true #recomanded: true
holograms:
enabled: true
line-distance: 0.38
chat:
enabled: true
format: "%sender%: %message%"
Expand Down
6 changes: 0 additions & 6 deletions src/main/resources/lang/al.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,3 @@ spawnmob:
spawned: '%prefix% &a%num% krijesa u krijuan!'
invalid: '%prefix% &cEntitet i pavlefshëm'
usage: '%prefix% &cPërdorimi: /spawnmob <krijesë> [numër]'
holograms:
created: "%prefix% &aHologrami u krijua me emrin %name%"
line-added: "%prefix% &aRresht %n% u shtua"
deleted: "%prefix% &cHologrami me emrin %name% u fshi me sukses!"
line-delete: "%prefix% &cRreshti %n% u fshi"
usage: "%prefix% &cPërdorimi: /holo <krijo|shtorresht|fshij|fshijrresht> <argumente>"
6 changes: 0 additions & 6 deletions src/main/resources/lang/cz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,3 @@ spawnmob:
spawned: '%prefix% &aBylo vytvořeno %num% mobů!'
invalid: '%prefix% &cNeplatná entita'
usage: '%prefix% &cPoužití: /spawnmob <mob> [počet]'
holograms:
created: "%prefix% &aHologram vytvořen s názvem %name%"
line-added: "%prefix% &aŘádek č.%n% byl přidán"
deleted: "%prefix% &cHologram s názvem %name% byl úspěšně smazán!"
line-delete: "%prefix% &cŘádek č.%n% byl smazán"
usage: "%prefix% &cPoužití: /holo <create|addline|delete|removeline> <argumenty>"
8 changes: 1 addition & 7 deletions src/main/resources/lang/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,4 @@ killmobs:
spawnmob:
spawned: '%prefix% &a%num% Mobs wurden erstellt!'
invalid: '%prefix% &cUngültige Entität'
usage: '%prefix% &cVerwendung: /spawnmob <Mob> [Anzahl]'
holograms:
created: "%prefix% &aHologramm wurde mit dem Namen %name% erstellt"
line-added: "%prefix% &aZeile Nr. %n% wurde hinzugefügt"
deleted: "%prefix% &cHologramm mit dem Namen %name% wurde erfolgreich gelöscht!"
line-delete: "%prefix% &cZeile Nr. %n% wurde gelöscht"
usage: "%prefix% &cVerwendung: /holo <erstellen|hinzufügen|löschen|zeileentfernen> <Argumente>"
usage: '%prefix% &cVerwendung: /spawnmob <Mob> [Anzahl]'
6 changes: 0 additions & 6 deletions src/main/resources/lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,3 @@ spawnmob:
spawned: "prefix% &a%num% mobs have been spawned!"
invalid: "%prefix% &cInvalid entity"
usage: "%prefix% &cUsage: /spawnmob <mob> [num]"
holograms:
created: "%prefix% &aHologram was create with name %name%"
line-added: "%prefix% &aLine n.%n% was added"
deleted: "%prefix% &cHologram with name %name% was successfully deleted!"
lide-delete: "%prefix% &cLine n.%n% was deleted"
usage: "%prefix% &cUsage: /holo <create|addline|delete|removeline> <arguments>"
6 changes: 0 additions & 6 deletions src/main/resources/lang/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,3 @@ spawnmob:
spawned: '%prefix% &a¡Se han creado %num% criaturas!'
invalid: '%prefix% &cEntidad inválida'
usage: '%prefix% &cUso: /spawnmob <criatura> [num]'
holograms:
created: "%prefix% &aHolograma creado con el nombre %name%"
line-added: "%prefix% &aLínea n. %n% añadida"
deleted: "%prefix% &cHolograma con el nombre %name% eliminado exitosamente!"
line-delete: "%prefix% &cLínea n. %n% eliminada"
usage: "%prefix% &cUso: /holo <crear|añadirlinea|eliminar|removerlinea> <argumentos>"
8 changes: 1 addition & 7 deletions src/main/resources/lang/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,4 @@ killmobs:
spawnmob:
spawned: '%prefix% &a%num% créatures ont été créées !'
invalid: '%prefix% &cEntité invalide'
usage: '%prefix% &cUtilisation : /spawnmob <créature> [nombre]'
holograms:
created: "%prefix% &aHologramme créé avec le nom %name%"
line-added: "%prefix% &aLigne n°%n% ajoutée"
deleted: "%prefix% &cHologramme avec le nom %name% supprimé avec succès!"
line-delete: "%prefix% &cLigne n°%n% supprimée"
usage: "%prefix% &cUtilisation : /holo <create|addline|delete|removeline> <arguments>"
usage: '%prefix% &cUtilisation : /spawnmob <créature> [nombre]'
8 changes: 1 addition & 7 deletions src/main/resources/lang/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,4 @@ killmobs:
spawnmob:
spawned: "%prefix% &a%num% mobs sono stati creati!"
invalid: "%prefix% &cEntità invalida"
usage: "%prefix% &cUso: /spawnmobs <mob> [num]"
holograms:
created: "%prefix% &aHologram creato con il nome %name%"
line-added: "%prefix% &aLinea n.%n% aggiunta"
deleted: "%prefix% &cHologram con il nome %name% eliminato con successo!"
line-delete: "%prefix% &cLinea n.%n% eliminata"
usage: "%prefix% &cUtilizzo: /holo <create|addline|delete|removeline> <argomenti>"
usage: "%prefix% &cUso: /spawnmobs <mob> [num]"
9 changes: 1 addition & 8 deletions src/main/resources/lang/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,4 @@ killmobs:
spawnmob:
spawned: '%prefix% &a%num% мобов было создано!'
invalid: '%prefix% &cНедопустимая сущность'
usage: '%prefix% &cИспользование: /spawnmob <моб> [кол-во]'
holograms:
created: "%prefix% &aГолограмма создана с именем %name%"
line-added: "%prefix% &aЛиния №%n% была добавлена"
deleted: "%prefix% &cГолограмма с именем %name% была успешно удалена!"
line-delete: "%prefix% &cЛиния №%n% была удалена"
usage: "%prefix% &cИспользование: /holo <create|addline|delete|removeline> <аргументы>"

usage: '%prefix% &cИспользование: /spawnmob <моб> [кол-во]'
6 changes: 0 additions & 6 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ commands:
speed:
killmobs:
spawnmob:
holo:
aliases:
- holograms
- hologram

permissions:
kore.*:
Expand Down Expand Up @@ -100,5 +96,3 @@ permissions:
description: ""
kore.spawnmob:
description: ""
kore.holo:
description: ""

0 comments on commit d3d9ecb

Please sign in to comment.