Added Mocking System for the Plugin allowing for null resource tests
This commit is contained in:
parent
9f4fbead7f
commit
825413fcc3
|
@ -0,0 +1,89 @@
|
|||
nopermission: "&cYou do not have permission to that command!"
|
||||
unknown_error: "&cSomething went wrong..."
|
||||
lagdetection: "Lagdetection in world: &c%world"
|
||||
wrong_usage: "&c%usage"
|
||||
not_registered: "&cThis player hasn't joined yet!"
|
||||
|
||||
world:
|
||||
reseted: "You would was reset!"
|
||||
still_loaded: "&cYour world is still loaded!"
|
||||
not_on: "&cYou are not on a world!"
|
||||
created: "Your world is now ready. Get there with &a/ws home"
|
||||
already_exists: "&cYou already have a world!"
|
||||
delete:
|
||||
own: "&cYour world was deleted!"
|
||||
other: "You deleted the world of &c%player&6!"
|
||||
does_not_exists:
|
||||
own: "&cYou don't have a world!"
|
||||
other: "&cThis player doesn't has a world!"
|
||||
setting_up: "&aLoading world..."
|
||||
playerlist: "Players in this world: %players"
|
||||
still_creating: "&cWorld is still creating"
|
||||
set_home: "You set the home"
|
||||
not_enough_money: "You do not have enough money"
|
||||
|
||||
member:
|
||||
removed: "You removed &c%player&6 from your world!"
|
||||
added: "You have added &c%player&6 to your world!"
|
||||
already_added: "&cThis player is already a member!"
|
||||
not_added:
|
||||
own: "&cThis player isn't a member!"
|
||||
other: "&cYou have not been added to this world!"
|
||||
no_one_added: "&cThere are no members added"
|
||||
|
||||
request:
|
||||
expired: "&cYour request has expired!"
|
||||
confirm: "WARNING - Please confirm reset of your world: %command"
|
||||
until_expire: "&cYour request expires in %time seconds!"
|
||||
already_sent: "&cYou already sent a request!"
|
||||
not_sent: "&cYou have not sent a request!"
|
||||
invalid_input: "&c%input is not a valid request!"
|
||||
|
||||
toggle:
|
||||
gamemode:
|
||||
enabled: "&a%player&6 can now change their gamemode!"
|
||||
disabled: "&c%player&6 can no longer change their gamemode!"
|
||||
teleport:
|
||||
enabled: "&a%player&6 can now teleport!"
|
||||
disabled: "&c%player&6 can no longer teleport!"
|
||||
build:
|
||||
enabled: "&a%player&6 can now build!"
|
||||
disabled: "&c%player&6 can no longer build!"
|
||||
worldedit:
|
||||
enabled: "&a%player&6 can now use WorldEdit!"
|
||||
disabled: "&c%player&6 can no longer use WorldEdit!"
|
||||
fire:
|
||||
enabled: "&aYou activated fire!"
|
||||
disabled: "&cYou deactivated fire!"
|
||||
tnt:
|
||||
enabled: "&aYou activated TNT-Damage!"
|
||||
disabled: "&cYou deactivated TNT-Damage!"
|
||||
|
||||
info:
|
||||
owner: "Owner: %data"
|
||||
id: "ID: %data"
|
||||
member: "Member: %data"
|
||||
tnt: "TNT: %data"
|
||||
fire: "Fire: %data"
|
||||
enabled: "&aOn"
|
||||
disabled: "&cOff"
|
||||
|
||||
command_help:
|
||||
list:
|
||||
- "/ws get &8- &7Will give you a world"
|
||||
- "/ws home &8- &7Teleports you on your world"
|
||||
- "/ws sethome &8- &7Sets a specific home"
|
||||
- "/ws gui &8- &7Opens the GUI menu if you are the world owner"
|
||||
- "/ws tp &8- &7Teleports you on a specific world"
|
||||
- "/ws addmember &8- &7Adds a player to your world"
|
||||
- "/ws delmember &8- &7Removes a player from your world"
|
||||
- "/ws leave &8- &7Leave a world"
|
||||
- "/ws tnt &8- &7Allows/Denies TNT on your world"
|
||||
- "/ws fire &8- &7Allows/Denies Fire on your world"
|
||||
- "/ws togglegm &8- &7Allows/Denies a player changing gamemode"
|
||||
- "/ws togglebuild &8- &7Allows/Denies a player building on your world"
|
||||
- "/ws toggletp &8- &7Allows/Denies a player teleporting on your world"
|
||||
- "/ws togglewe &8- &7Allows/Denys a player using WorldEdit"
|
||||
- "/ws info &8- &7Shows information about the world"
|
||||
- "/ws reset &8- &7Will reset your world"
|
||||
delete_command: "/ws delete &8- &7Will delete a world"
|
|
@ -0,0 +1,88 @@
|
|||
nopermission: "&cNo tienes permiso."
|
||||
unknown_error: "&cAlgo salio mal..."
|
||||
lagdetection: "Deteccion de lag en el mundo: &c%world"
|
||||
wrong_usage: "&c%usage"
|
||||
not_registered: "&cEse jugador no existe."
|
||||
|
||||
world:
|
||||
reseted: "Tu mundo ha sido reiniciado."
|
||||
still_loaded: "&cTu mundo aun esta cargando."
|
||||
not_on: "&cNo estas en un mundo."
|
||||
created: "Tu mundo esta listo. Ve a el con &a/ws home&6."
|
||||
already_exists: "&cYa tienes un mundo."
|
||||
delete:
|
||||
own: "&cTu mundo ha sido eliminado"
|
||||
other: "Has eliminado el mundo de &c%player&6."
|
||||
does_not_exists:
|
||||
own: "&cNo tienes un mundo."
|
||||
other: "&cEse jugador no tiene un mundo."
|
||||
setting_up: "&aConfigurando el mundo..."
|
||||
playerlist: "Jugadores en este mundo: %players"
|
||||
still_creating: "&cEl mundo aun no esta listo."
|
||||
set_home: "Has establecido el hogar."
|
||||
not_enough_money: "No tienes suficiente dinero."
|
||||
|
||||
member:
|
||||
removed: "Has eliminado a &c%player&6 de tu mundo."
|
||||
added: "Has agregado a &c%player&6 a tu mundo."
|
||||
already_added: "&cEse jugador ya es miembro de tu mundo."
|
||||
not_added:
|
||||
own: "&cEse jugador no es miembro de tu mundo."
|
||||
other: "&cNo estas agregado a este mundo."
|
||||
no_one_added: "&cNo hay jugadores agregados."
|
||||
|
||||
request:
|
||||
expired: "&cTu solicitud ha expirado."
|
||||
confirm: "&cPor favor confirma el reinicio de tu mundo con: %command"
|
||||
until_expire: "&cTu solicitud expira en %time segundos."
|
||||
already_sent: "&cYa has enviado una solicitud."
|
||||
not_sent: "&cNo has enviado una solicitud."
|
||||
invalid_input: "&c%input no es una solicitud valida."
|
||||
|
||||
toggle:
|
||||
gamemode:
|
||||
enabled: "&a%player&6 ahora puede cambiar su modo de juego."
|
||||
disabled: "&c%player&6 ya no puede cambiar su modo de juego."
|
||||
teleport:
|
||||
enabled: "&a%player&6 ahora puede teletransportarse."
|
||||
disabled: "&c%player&6 ya no puede teletransportarse."
|
||||
build:
|
||||
enabled: "&a%player&6 ahora puede construir."
|
||||
disabled: "&c%player&6 ya no puede construir"
|
||||
worldedit:
|
||||
enabled: "&a%player&6 ahora puede usar WorldEdit."
|
||||
disabled: "&c%player&6 ya no puede usar WorldEdit."
|
||||
fire:
|
||||
enabled: "&aHas activado el fuego."
|
||||
disabled: "&cHas desactivado el fuego."
|
||||
tnt:
|
||||
enabled: "&aHas activado la TNT."
|
||||
disabled: "&cHas desactivado la TNT."
|
||||
|
||||
info:
|
||||
owner: "Propietario: %data"
|
||||
id: "ID: %data"
|
||||
member: "Miembros: %data"
|
||||
tnt: "TNT: %data"
|
||||
fire: "Fuego: %data"
|
||||
enabled: "&aActivado"
|
||||
disabled: "&cDesactivado"
|
||||
command_help:
|
||||
list:
|
||||
- "/ws get &8- &7Obten tu mundo"
|
||||
- "/ws home &8- &7Ve a tu mundo"
|
||||
- "/ws sethome &8- &7Sets a specific home"
|
||||
- "/ws gui &8- &7Abre el menu de tu mundo"
|
||||
- "/ws tp &8- &7Ve a un mundo especifico"
|
||||
- "/ws addmember &8- &7Agrega jugadores a tu mundo"
|
||||
- "/ws delmember &8- &7Elimina jugadores de tu mundo"
|
||||
- "/ws leave &8- &7Salir de un mundo"
|
||||
- "/ws tnt &8- &7Activa/Desactiva la TNT en tu mundo"
|
||||
- "/ws fire &8- &7Activa/Desactiva el FUEGO en tu mundo"
|
||||
- "/ws togglegm &8- &7Activa/Desactiva el cambio de modo"
|
||||
- "/ws togglebuild &8- &7Activa/Desactiva la construccion"
|
||||
- "/ws toggletp &8- &7Activa/Desactiva la teletransportacion"
|
||||
- "/ws togglewe &8- &7Activa/Desactiva el uso de WorldEdit."
|
||||
- "/ws info &8- &7Muestra informacion del mundo"
|
||||
- "/ws reset &8- &7Reinicia tu mundo"
|
||||
delete_command: "/ws delete &8- &7Elimina tu mundo"
|
|
@ -0,0 +1,2 @@
|
|||
package de.butzlabben.world.commands.commands;public class BaseCommand {
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
package de.butzlabben.world.config;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MessageConfig
|
||||
{
|
||||
private static final List<String> defaultCmdHelp = new ArrayList<>(20);
|
||||
private static File languageFile;
|
||||
|
||||
static {
|
||||
defaultCmdHelp.add("/ws get §8- §7Will give you a World");
|
||||
defaultCmdHelp.add("/ws home §8- §7Teleports you on your World");
|
||||
defaultCmdHelp.add("/ws sethome §8- §7Sets a specific home");
|
||||
defaultCmdHelp.add("/ws tp §8- §7Teleports you on a specific World");
|
||||
defaultCmdHelp.add("/ws addmember §8- §7Adds a player to your World");
|
||||
defaultCmdHelp.add("/ws delmember§8 - §7Removes a player from your World");
|
||||
defaultCmdHelp.add("/ws tnt §8- §7Allows/Denys TNT on your World");
|
||||
defaultCmdHelp.add("/ws fire §8- §7Allows/Denys Fire on your World");
|
||||
defaultCmdHelp.add("/ws togglechgm §8- §7Allows/Denys a player changing gamemode");
|
||||
defaultCmdHelp.add("/ws togglebuild §8- §7Allows/Denys a player building");
|
||||
defaultCmdHelp.add("/ws toggletp §8- §7Allows/Denys a player teleporting");
|
||||
defaultCmdHelp.add("/ws info §8- §7Shows information about the World");
|
||||
defaultCmdHelp.add("/ws reset §8- §7Will reset your World");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
package de.butzlabben.world;
|
||||
|
||||
import de.butzlabben.world.commands.WorldSystemCommandExecuter;
|
||||
import de.butzlabben.world.commands.commands.DebugCommandTest;
|
||||
import de.butzlabben.world.commands.commands.WorldSystemTabComplete;
|
||||
import de.butzlabben.world.config.PluginConfig;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.plugin.PluginDescriptionFile;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.bukkit.plugin.java.JavaPluginLoader;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
|
||||
public class main extends JavaPlugin
|
||||
{
|
||||
|
||||
private WorldSystem plugin;
|
||||
@Override
|
||||
public void onEnable() {
|
||||
plugin = new WorldSystem();
|
||||
plugin.onEnable();
|
||||
}
|
||||
|
||||
public static main getInstance() {
|
||||
return JavaPlugin.getPlugin(main.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
package de.butzlabben.world;public class MockWorldSystem {
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
package de.butzlabben.world;public class TestWorldSystem {
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
package de.butzlabben.world.config;public class TestLanguageConfig {
|
||||
}
|
Loading…
Reference in New Issue