Commit ae1f8c9e authored by Senk Ju's avatar Senk Ju

Translasted plugin into english

parent b088b252
......@@ -31,7 +31,7 @@ public final class BuildFFACommand implements CommandExecutor {
public boolean onCommand(final CommandSender sender, final Command command, final String label, final String[] args) {
// Check if sender is no player
if(!(sender instanceof Player)) {
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aDu musst ein Spieler sein, damit du diesen Befehl ausführen kannst.");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aOnly players can execute this command!");
return true;
}
......@@ -48,7 +48,7 @@ public final class BuildFFACommand implements CommandExecutor {
case "join": {
// Check join permission
if(!sender.hasPermission("buildffa.join")) {
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aDu hast nicht genügend Berechtigung um diesen Befehl auszuführen!");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aMissing permissions to execute this command!");
return true;
}
......@@ -62,7 +62,7 @@ public final class BuildFFACommand implements CommandExecutor {
// Check world exist
if (world == null) {
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aDie Map §9" + args[1] + "§a existiert nicht.");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aMap §9" + args[1] + "§a does not exist.");
return true;
}
......@@ -70,7 +70,7 @@ public final class BuildFFACommand implements CommandExecutor {
// Check game map exist in world
if (gameMap == null) {
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aDie Map §9" + world.getName() + "§a existiert nicht.");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aMap §9" + world.getName() + "§a does not exist.");
return true;
}
......@@ -78,35 +78,35 @@ public final class BuildFFACommand implements CommandExecutor {
// Check game map has spawn location
if (location == null) {
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aDie Map besitzt noch keine Spawn Location.");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aThis map does not have a spawn location.");
return true;
}
// Teleport player to game map spawn location and set game inventory
player.teleport(location);
GameInventory.setInventory(player);
sender.sendMessage("§8(§7BuildFFA§8) §aDu bist der Map §9" + location.getWorld().getName() + "§a beigetreten.");
sender.sendMessage("§8(§7BuildFFA§8) §aJoined map §9" + location.getWorld().getName() + "§a .");
return true;
}
case "create":
// Check permission for setup a map
if(!sender.hasPermission("buildffa.setup")) {
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aDu hast nicht genügend Berechtigung um diesen Befehl auszuführen!");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aMissing permissions to execute this command!");
return true;
}
// Create map in world of player location
if (BuildFFA.buildFFA.game.createMap(player.getWorld().getUID())) {
sender.sendMessage("§8(§7BuildFFA§8) §aDie Map wurde erfolgreich erstellt.");
sender.sendMessage("§8(§7BuildFFA§8) §aSuccessfully created map.");
return true;
}
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aDie Map konnte nicht erstellt werden.");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aCould not crate map!");
return true;
case "setup":
// Check permission for setup a map
if(!sender.hasPermission("buildffa.setup")) {
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aDu hast nicht genügend Berechtigung um diesen Befehl auszuführen!");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aMissing permissions to execute this command!");
return true;
}
......@@ -123,13 +123,13 @@ public final class BuildFFACommand implements CommandExecutor {
// Check world has game map
if (gameMap == null) {
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aDie Map §9" + player.getWorld().getName() + "§a existiert nicht.");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aMap §9" + player.getWorld().getName() + "§a does not exist.");
return true;
}
// Set spawn location of game map
gameMap.setSpawnLocation(player.getLocation());
sender.sendMessage("§8(§7BuildFFA§8) §a §aDie Spawn Location wurde erfolgreich gesetzt.");
sender.sendMessage("§8(§7BuildFFA§8) §a §aSuccessfully set spawn location.");
break;
}
case "death": {
......@@ -137,13 +137,13 @@ public final class BuildFFACommand implements CommandExecutor {
// Check world has game map
if (gameMap == null) {
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aDie Map §9" + player.getWorld().getName() + "§a existiert nicht.");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aMap §9" + player.getWorld().getName() + "§a does not exist.");
return true;
}
// Set death location of game map
gameMap.setDeathY(player.getLocation().getY());
sender.sendMessage("§8(§7BuildFFA§8) §a §aDer Todes Punkt wurde erfolgreich gesetzt.");
sender.sendMessage("§8(§7BuildFFA§8) §a §aSuccessfully set death point.");
break;
}
}
......@@ -151,17 +151,17 @@ public final class BuildFFACommand implements CommandExecutor {
case "delete":
// Check permission for setup a map
if(!sender.hasPermission("buildffa.setup")) {
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aDu hast nicht genügend Berechtigung um diesen Befehl auszuführen!");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aMissing permissions to execute this command!");
return true;
}
// Delete map of world
if (BuildFFA.buildFFA.game.deleteMap(player.getWorld().getUID())) {
sender.sendMessage("§8(§7BuildFFA§8) §aDie Map wurde erfolgreich gelöscht.");
sender.sendMessage("§8(§7BuildFFA§8) §aSuccessfully deleted map.");
return true;
}
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aIn diese Welt exestiert noch keine Map.");
sender.sendMessage("§8(§7BuildFFA§8) §c§lError: §aThis world does not contain a map!");
return true;
case "stats":
// TODO: Add stats system
......
......@@ -30,7 +30,7 @@ public final class BuildListener implements Listener {
return;
if(!gameMap.isPlacedBlock(location)) {
player.sendMessage("§8(§7BuildFFA§8) §cDu darfst keine Blöcke von der Map zerstören!");
player.sendMessage("§8(§7BuildFFA§8) §cYou cannot break blocks here!");
event.setCancelled(true);
}
}
......
......@@ -130,6 +130,6 @@ public final class PlayerListener implements Listener {
return;
event.setCancelled(true);
player.sendMessage("§8(§7BuildFFA§8) §cDu darfst keine Items auf der Map droppen!");
player.sendMessage("§8(§7BuildFFA§8) §cYou cannot drop items here!");
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment