Skip to content

Commit

Permalink
New version 1.1.3
Browse files Browse the repository at this point in the history
Merge pull request #166 from genboy/development including

    Spanish translation
    Polish translation
    Translations special characters possible with encoding class ForceUTF8
    FlightControl option to disable Flight flag usage everywhere
  • Loading branch information
genboy authored Apr 24, 2019
2 parents 4e08155 + 9ca7641 commit b22adb0
Show file tree
Hide file tree
Showing 10 changed files with 680 additions and 48 deletions.
37 changes: 27 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@

## Festival

If you like Festival please [vote](https://poggit.pmmp.io/p/Festival/1.1.1) and [share your experience](https://github.com/genboy/Festival/issues) to help Festival plugin improve, thank you!

Consider posting your first [share your experience and issues](https://github.com/genboy/Festival/issues) before posting a [vote](https://poggit.pmmp.io/p/Festival/1.1.1) if you like to use Festival!
That way it will improve Festival, my coding skills, your PMMP insights and the PMMP community, thank you!
![Festival plugin logo large](https://genboy.net/wp-content/uploads/2018/02/festival_plugin_logo.png)
Create a festival with this custom area events plugin for Pocketmine Server:

### Manage area's and run commmands attachted to area events.


![Festival creation & usage](https://genboy.net/wp-content/uploads/2019/03/festival_usage_1.1.0.png)
![Festival creation & usage](https://genboy.net/wp-content/uploads/2019/04/festival_usage_v1.1.3.png)


###### Copyright [Genboy](https://genboy.net) 2018

---

## Info
Festival 1.1.1 functionalities will not extend further more. Important bug fixes will still be done untill Festival 2 is ready.
Festival 2 is in [development](https://github.com/genboy/Festival/projects/2) including FormUI for easy control, a new code structure and some of the flags will be completely rewritten. I probably dump the translations untill there is request for it. Just to let you know ..
Festival 1.1.3 has now option to disable Flight flag (flight control off) and Spanish and Polish ranslations!
Festival 2 is paused for a little while now, development in [development](https://github.com/genboy/Festival/projects/2) including FormUI for easy control, a new code structure and some of the flags will be completely rewritten. Just to let you know ..

# Festival

Expand All @@ -31,18 +31,19 @@ Festival 2 is in [development](https://github.com/genboy/Festival/projects/2) in

More info also available at [the Festival Wiki](https://github.com/genboy/Festival/wiki)

Download the latest .phar files from [poggit.pmmp.io](https://poggit.pmmp.io/p/Festival/1.1.1), also available at [mcpehost.ru](https://panel.mcpehost.ru/repository/plugin?name=Festival)
Download the latest .phar files from [poggit.pmmp.io](https://poggit.pmmp.io/p/Festival/1.1.3), also available at [mcpehost.ru](https://panel.mcpehost.ru/repository/plugin?name=Festival)

!Please before asking; first double-check your server basic world configurations, other plugins configurations (ie. worldguard) and the used player permissions incl. Festival whitelistings.

#### Features

**Config**
- set default options in config.yml;
- language: en - select language English = en, Dutch = nl, translate please !
- language: en - select language English = en, Dutch = nl, es = Español, pl = Polskie - translate please !
- Msgtype: msg - Area Messages Display position (msg/title/tip/pop)
- Msgdisplay: off - Area Messages persist display to ops (off/op/on)
- Areadisplay: op - Area Floating Title display to ops (off/op/on)
- FlightControl: on - To disable flight flag for all Festival usage (on/off)
- AutoWhitelist: on - Auto whitelist area creator (on/off)

**Area**
Expand Down Expand Up @@ -145,17 +146,19 @@ and all [other iProtector devs](https://github.com/LDX-MCPE/iProtector/network).

##### A visualisation of Festival command usage

![Festival creation & usage](https://genboy.net/wp-content/uploads/2019/03/festival_usage_1.1.0.png)
![Festival creation & usage](https://genboy.net/wp-content/uploads/2019/04/festival_usage_v1.1.3.png)

###### Copyright [Genboy](https://genboy.net) 2018



#### Language

Set Festival language en/nl for area and command returned messages.
Set Festival language en/nl/es/pl for area and command returned messages.
en = english
nl = nederlands
es = Espanol
pl = Polski
__ = your language, please help [translate __.js](https://github.com/genboy/Festival/blob/master/resources/en.json)


Expand Down Expand Up @@ -429,7 +432,21 @@ Thank you

**Since v1.1.0**
- fix griefing bug: adjusted in some functions to determine the needed position to validate the action(flag).

**Since v1.1.2**
- fix translation bug: adjusted utf-8 json encoding,
- Thanks to [@bptube](https://github.com/bptube) now including Spanish language!

**Since v1.1.1**
- fix transalation and mobs/animals error + @bptube added & reviewed Español(/fe lang es)

**Since v1.1.2**
- new pl.json and @dearminder reviewed Polskie(/fe lang pl)

**Since v1.1.3**
- new class ForceUTF8 for json encoding translations
- new FlightControl option to disable flight flag

------


Expand Down
6 changes: 3 additions & 3 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Festival
author: Genboy
version: 1.1.1
version: 1.1.3
main: genboy\Festival\Main
load: POSTWORLD
api: [3.0.0]
website: "https://github.com/genboy/Festival"
commands:
fe:
description: "Allows you to manage Festival area's and events."
usage: "\n§bChoose language: §f/fe lang <en/nl> §bToggle floating area titles: §f/fe titles §bSee area info at location: §f/fe <list/here> \n§5How to create an area: §6select 2 corner positions §f/fe <pos1/pos2>§6, then name the area by using: §f/fe create <AREANAME> \n§9Toggle area flags: §f/fe <FLAGNAME> <AREANAME> §9Flags: §fgod, pvp, flight, edit, touch, mobs, animals, effects, msg, passage, drop, tnt, fire, explode, shoot, hunger, perms, falldamage \n§5Add an area event command: \n§f/fe command <AREANAME> <add/enter/center/leave> <COMMANDID> <COMMANDSTRING> \n§5Edit or delete command: \n§f/fe command <AREANAME> <(edit)/del> <COMMANDID> (<COMMANDSTRING>) \n§5Change command event: \n§f/fe command <AREANAME> event <COMMANDID> <enter/center/leave> \n§5Whitelist players: \n§f/fe whitelist <AREANAME> <add/remove> <PLAYERNAME>"
usage: "\n§bChoose language: §f/fe lang <en/nl/es/pl> §bToggle floating area titles: §f/fe titles §bSee area info at location: §f/fe <list/here> \n§5How to create an area: §6select 2 corner positions §f/fe <pos1/pos2>§6, then name the area by using: §f/fe create <AREANAME> \n§9Toggle area flags: §f/fe <FLAGNAME> <AREANAME> §9Flags: §fgod, pvp, flight, edit, touch, mobs, animals, effects, msg, passage, drop, tnt, fire, explode, shoot, hunger, perms, falldamage \n§5Add an area event command: \n§f/fe command <AREANAME> <add/enter/center/leave> <COMMANDID> <COMMANDSTRING> \n§5Edit or delete command: \n§f/fe command <AREANAME> <(edit)/del> <COMMANDID> (<COMMANDSTRING>) \n§5Change command event: \n§f/fe command <AREANAME> event <COMMANDID> <enter/center/leave> \n§5Whitelist players: \n§f/fe whitelist <AREANAME> <add/remove> <PLAYERNAME>"
permission: festival.command.fe
permissions:
festival:
Expand Down Expand Up @@ -57,7 +57,7 @@ permissions:
description: "Allows access to the Festival flag subcommand."
default: op
festival.command.fe.delete:
description: "Allows access to the iProtector delete subcommand."
description: "Allows access to the Festival delete subcommand."
default: op
festival.command.fe.whitelist:
description: "Allows access to the Festival whitelist subcommand."
Expand Down
9 changes: 6 additions & 3 deletions resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Config file for Festival 1.1.1
# Config file for Festival 1.1.3

# Festival options
Options:
# select a language: English = en, Dutch = nl, translate please !
language: en
# select a language: English = en, Dutch = nl, Español = es, Polskie = pl ( todo: 日本人 = ja, 中文 = zh, 한국어 = ko, русский = ru, italiano = it, Indonesia = in, translate please)
Language: en

# Area Messages Display position (msg/title/tip/pop)
Msgtype: msg
Expand All @@ -14,6 +14,9 @@ Options:
# Area Messages persist display to ops (off/op/on)
Msgdisplay: off

# Use flight flag (on/off) - since v.1.1.3 flight flag usage can be turn off
FlightControl: on

# Auto whitelist area creator (on/off)
AutoWhitelist: on

Expand Down
9 changes: 3 additions & 6 deletions resources/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
"language-name": "English",
"language-selected": "Now selected English.",

"enabled-console-msg": "Festival now enabled, English selected (adjust with /fe lang <en/nl>).",
"enabled-console-msg": "Festival now enabled, English selected (adjust with /fe lang <en/nl/es/pl>).",

"cmd-ingameonly-msg": "Festival command only to be used in-game.",
"cmd-unknown-msg": "Unknown Festival command",
"cmd-noperms-msg": "You can not use this Festival command",
"cmd-noperms-subcommand": "You do not have permission to use this subcommand.",


"pos-select-active": "You're already selecting a position!",
"select-both-pos-first":"Please select both positions first.",
"pos1": "position 1",
Expand All @@ -23,7 +22,7 @@
"area": "Area",
"areas": "areas",
"level": "level",
"level": "levels",
"levels": "levels",
"player": "player",
"players": "players",
"the-area": "The area",
Expand All @@ -50,12 +49,10 @@
"desc-write-usage": "Please write the description. Usage /fe desc <areaname> <..>",
"desc-specify-area": "Please specify an area to edit the description. Usage: /fe desc <areaname> <desc>",


"area-deleted": "Area deleted!",
"deleted-by":"deleted by",
"specify-to-delete":"Please specify an area to delete.",


"flag": "Flag",
"flags": "flags",
"flag-not-found-list": "Flag not found. (Flags: god, pvp, flight, edit, touch, animals, mobs, effects, msg, passage, drop, tnt, shoot, hunger, perms, falldamage)",
Expand Down Expand Up @@ -111,7 +108,7 @@
"option-missing-in-config": "option missing in config.yml, now set to",
"flag-missing-in-config": "flag defaults missing, now set to",
"barrier-is-passage-flag": "Old Barrier config was used, now set to 'false'; please rename 'Barrier' to 'Passage' in config.yml",
"no-is-falldamage-flag": "Old Barrier config was used, now set to 'false'; please rename 'Barrier' to 'Passage' in config.yml",
"no-is-falldamage-flag": "Old NoFalldamage config was used, now set to 'false'; please rename 'NoFalldamage' to 'Falldamage' in config.yml",
"option-see-configfile": "please see original configs in /resources/config.yml"

}
114 changes: 114 additions & 0 deletions resources/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"language-name": "Español",
"language-selected": "Has Seleccionado el Español",

"enabled-console-msg": "Festival ahora habilitado, inglés seleccionado (ajustar con /fe lang <en/nl/es/pl>).",

"cmd-ingameonly-msg": "El comando solo puede ser usado en el juego.",
"cmd-unknown-msg": "Comando desconocido",
"cmd-noperms-msg": "No puedes usar este comando del Festival.",
"cmd-noperms-subcommand": "No tienes permiso para usar este subcomando.",

"pos-select-active": "¡Ya estás seleccionando una posición!",
"select-both-pos-first":"Por favor, seleccione ambas posiciones primero.",
"pos1": "posición 1",
"pos2": "posición 2",
"make-pos1": "Por favor coloque o rompa la primera posición.",
"make-pos2": "Por favor coloque o rompa la segunda posición.",
"give-area-name": "Por favor, especifique un nombre para esta área.",

"in-unknown-area": "Estas en un area desconocida",

"area": "Area",
"areas": "areas",
"level": "nivel",
"levels": "niveles",
"player": "jugador",
"players": "jugadores",
"the-area": "La zona",
"the-level": "El nivel",
"area-created": "Área creada!",
"created-by":"creado por",
"area-here": "Area aqui",
"area-no-area-available": "No hay área disponible",
"area-no-area-to-edit": "No hay áreas que puedas editar.",
"area-name-excist": "Ya existe un área con ese nombre.",
"area-not-excist": "Área no existe.",
"cannot-be-found": "no pudo ser encontrado.",
"area-list" : "Lista de áreas",
"players-in-area": "jugadores en el area",
"area-whitelist": "lista blanca",
"area-no-commands": "sin comandos adjuntos",
"player-has-been-whitelisted": "ha sido incluido en la lista blanca en el área",
"player-allready-whitelisted": "Ya está en la lista blanca en el área",
"player-has-been-unwhitelisted": "Ha sido excluido de la lista blanca de está area",
"player-allready-unwhitelisted": "ya está excluido en la lista blanca del área",
"whitelist-specify-action": "Por favor, especifique una acción válida. Usé: /area whitelist <areaname> <add/list/remove> <playername>",

"desc-saved": "Descripción guardada.",
"desc-write-usage": "Por favor escriba la descripción. Usé: /fe desc <areaname> <..>",
"desc-specify-area": "Por favor, especifique un área para editar la descripción. Usé: /fe desc <areaname> <desc>",

"area-deleted": "Área eliminada!",
"deleted-by":"eliminado por",
"specify-to-delete":"Por favor, especifique un área para eliminar.",

"flag": "flag",
"flags": "flags",
"flag-not-found-list": "Flag no encontrada (Flags: god, pvp, flight, edit, touch, animals, mobs, effects, msg, passage, drop, tnt, shoot, hunger, perms, falldamage)",
"flag-not-specified-list": "Por favor, especifique una flag. (Flags: god, pvp, flight, edit, touch, animals, mobs, effects, msg, passage, drop, tnt, shoot, hunger, perms, falldamage)",
"specify-to-flag": "Por favor, especifique el área en la que le gustaría colocar una flag",

"tp-to-area-active": "Estás teletransportando a la zona",
"specify-excisting-area-name": "Por favor, especifique un nombre de área existente.",

"cmd": "comando",
"cmds": "comandos",
"cmd-id": "ID del comando",
"cmd-list": "Lista de comandos",
"-event": "-evento",
"set-for-area": "establecer para el área",
"added-to-area": "añadido al área",
"allready-used-for": "ya utilizado para",
"allready-set-for-area": "ya establecido para el área",
"edit-id-or-other": ", edita este id o usa otro id",
"cmd-specify-id-and-command-usage": "Por favor, especifique el ID de comando y el comando para agregar. Usé: /fe command <areaname> y <COMMANDID> <COMMANDSTRING>",
"cmd-valid-areaname": "Área no encontrada, por favor envíe un nombre válido. Usé: /fe command <areaname> <add/list/edit/del> <commandID> <commandstring>.",

"cmd-id-not-found": "ID de comando no encontrado. Ver los comandos con /fe event command <areaname> list'",
"cmd-specify-id-to-delete": "Por favor, especifique el ID del comando para eliminar. Usé /fe event command <areaname> del <COMMANDID>",
"cmd-specify-action": "Por favor agregue una acción para realizar con el comando. Usé: /fe command <areaname> <add/list/edit/del> <commandID> <commandstring>.",

"event": "evento",
"event-is-now": "evento es ahora",
"change-failed": "cambio-fallido!",

"select-and": "y",
"select-in": "en",
"select-yes": "",
"select-no": "No",
"status-on": "Encendido",
"status-off": "Apagado",
"set-to": "ajustado a",
"for-area": "Por área",

"all-players-are-god": "¡Todos los jugadores son dios en esta área!",
"no-pvp-area": "¡Estás en un área sin PVP!",
"no-flight-area": "NO puede volar aquí!",
"flight-area": "¡Se permite volar aquí!",

"leaving-area": "saliendo",
"enter-area": "entrando",
"leaving-center-area": "Saliendo del centro de la area.",
"enter-center-area": "Entrando en el centro del área.",
"cannot-enter-area": "No puedes entrar al area",
"cannot-leave-area": "No puedes dejar la zona.",
"enter-barrier-area": "acaba de pasar una barrera!",

"option-missing-in-config": "opción que falta en config.yml, ahora configurada en",
"flag-missing-in-config": "faltan valores predeterminados de la bandera, ahora se establece en",
"barrier-is-passage-flag": "Se usó la antigua configuración de barrera, ahora configurada en 'false'; por favor renombra 'Barrier' por 'Passage' en config.yml",
"no-is-falldamage-flag": "Se usó la antigua configuración de NoFalldamage, ahora configurada en 'false'; por favor renombra 'NoFalldamage' por 'Falldamage' en config.yml",
"option-see-configfile": "Por favor, vea configuraciones originales en /resources/config.yml"

}
4 changes: 2 additions & 2 deletions resources/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"language-name": "Nederlands",
"language-selected": "Nederlands geselecteerd.",

"enabled-console-msg": "Festival opgestart, Nederlands geselecteerd (pas aan met /fe lang <en/nl>)",
"enabled-console-msg": "Festival opgestart, Nederlands geselecteerd (pas aan met /fe lang <en/nl/es/pl>)",

"cmd-ingameonly-msg": "Commando alleen voor gebruik in het spel.",
"cmd-unknown-msg": "Onbekend Festival commando",
Expand All @@ -22,7 +22,7 @@
"area": "gebied",
"areas": "gebieden",
"level": "level",
"level": "levels",
"levels": "levels",
"player": "speler",
"players": "spelers",
"the-area": "Het gebied",
Expand Down
Loading

0 comments on commit b22adb0

Please sign in to comment.