Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Commit

Permalink
Clean-up for use library, translated to Spanish, removed braodcast se…
Browse files Browse the repository at this point in the history
…tting
  • Loading branch information
alejandroliu committed Aug 26, 2016
1 parent 78c92ad commit 925b6c4
Show file tree
Hide file tree
Showing 8 changed files with 366 additions and 135 deletions.
115 changes: 53 additions & 62 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
SignWarp
========
<img src="https://raw.githubusercontent.com/alejandroliu/pocketmine-plugins/master/Media/SignWarp-icon.png" style="width:64px;height:64px" width="64" height="64"/>

# SignWarp

* Summary: Warp between places using signs
* Dependency Plugins: n/a
* PocketMine-MP version: 1.4 - API 1.10.0
* OptionalPlugins: ManyWorlds, FastTransfer
* OptionalPlugins: FastTransfer
* Categories: Teleportation
* Plugin Access: Commands, Tile Entities, Items/Blocks
* Plugin Access: Other Plugins, Commands, Tile Entities, Manages worlds
* WebSite: [github](https://github.com/alejandroliu/pocketmine-plugins/tree/master/SignWarp)

Overview
--------
## Overview

**DO NOT POST QUESTION/BUG-REPORTS/REQUESTS IN THE REVIEWS**
It is difficult to carry a conversation in the reviews. If you have a
question/bug-report/request please use the
[Thread](http://forums.pocketmine.net/threads/signwarp.7276/) for
that. You are more likely to get a response and help that way.

A very basic Plugin implementing simple _Sign_ based warps.
Please go to
[github](https://github.com/alejandroliu/pocketmine-plugins/tree/master/SignWarp)
for the most up-to-date documentation.

A Plugin implementing simple _Sign_ based warps.

Basic Usage:

Expand Down Expand Up @@ -41,9 +51,7 @@ For Warp between servers use:

You need the **FastTransfer** plugin for this to work.


Documentation
-------------
## Documentation

This plugin implements _warps_ through the placement of _signs_. You
need to create a sign with the text:
Expand Down Expand Up @@ -73,7 +81,7 @@ target location. If not specified it defaults to the `spawn` world.

If dynamic updates are enabled, the fourth line can contain the text
`Players:`, which will get updated dynamically with the number of
players on that world. Otherwise the ine is ignored and can be
players on that world. Otherwise the ine is ignored and can
contain any descriptive text.

To help identify potential _warp_ targets, the command `xyz` is
Expand All @@ -93,57 +101,40 @@ can be used for description.

You need the **FastTransfer** plugin for this to work.

### config.yml

---
# Example config.yml
settings:
dynamic-updates: true
broadcast-tp: true
xyz.cmd: true
text:
world:
- '[WORLD]'
- '[MUNDO]'
warp:
- '[WARP]'
- '[SWARP]'
- '[TELEPORT]'
transfer:
- '[TRANSFER]'
players:
- 'Players:'
- 'Jugadores:'
...

* dynamic-updates: 1 or 0, true or false
If enabled, signs will be updated with the number of players in a
particular world.
* broadcast-tp: 1 or 0, true or false
If enabled, teleports will be broadcast to all players.
* xyz.cmd: 1 or 0, true or false
If enabled, the `xyz` command will be available.
* world:
List of texts to use for `[WORLD]` teleport signs.
* warp:
List of texts to use for `[SWARP]` teleport signs.
* transfer:
List of texts to use for Transfer signs.
* players:
List of texts to use for the `Players:` counters.

### Permission Nodes:

* signwarp.cmd.xyz - Allows the user to show current x,y,z coordinates
* signwarp.place.sign - Allow user to create warp signs
* signwarp.place.transfer.sign - Allow user to create transfer signs
* signwarp.touch.sign - Allow user to use warp signs
* signwarp.touch.transfer.sign - Allow user to use transfer signs


Changes
-------
### Configuration

Configuration is throug the `config.yml` file.
The following sections are defined:

#### config.yml

* settings: configurable variables
* dynamic updates: Signs will be udpated with the number of players in a world
* xyz.cmd: If true, the **xyz** command will be available
* text: Text displayed on the different signs
* transfer: Fast transfer signs
* world: World teleport signs
* warp: Local world teleport signs
* players: Text to use when displaying player counts


### Permission Nodes

* signwarp.place.sign : Allow user to create warp
(Defaults to Op)
* signwarp.touch.sign : Allow user to use warp
* signwarp.place.transfer.sign : Allow user to create transfer signs
(Defaults to Op)
* signwarp.touch.transfer.sign : Allow user to use transfer signs
* signwarp.cmd.xyz : Shows current x,y,z coordinates


# Changes

* 1.4.0:
* Clean-up and use library stuff
* Removed broadcast setting
* Translations: Spanish
* 1.3.2: CallbackTask
* Removed CallbackTask deprecation warnings
* 1.3.1: FastTransfer
Expand Down Expand Up @@ -175,7 +166,6 @@ FAQ
* You can use a plugin like `ManyWorlds` or modify the `worlds` secion
in your `pocketmine.yml` file.


Copyright
=========

Expand All @@ -198,3 +188,4 @@ Copyright

128 70 128
X:-100 Y:69 Z:1072

4 changes: 2 additions & 2 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: SignWarp
api: [1.10.0]
version: 1.3.2
version: 1.4.0
load: POSTWORLD
main: aliuly\signwarp\Main
author: aliuly
softdepend: [ManyWorlds,FastTransfer]
softdepend: [FastTransfer]

permissions:
signwarp.place.sign:
Expand Down
40 changes: 40 additions & 0 deletions resources/messages/messages.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
; messages.ini
"%1%-mode"=""
"- Player: %1% => %2%:%3%"=""
"/xyz"=""
"Adventure"=""
"Can not teleport while holding sign!"=""
"Creative"=""
"Did you expect something to happen?"=""
"Disabling FastTransfer support"=""
"Enabling FastTransfer support"=""
"FAST TRANSFER NOT INSTALLED"=""
"FastTransfer being used hope it works!"=""
"N/A"=""
"Nothing happens!"=""
"Nothing happens..."=""
"Returns x,y,z coordinates"=""
"Somebody removed FastTransfer!"=""
"Spectator"=""
"Survival"=""
"Teleporting..."=""
"You are at %1%,%2%,%3%"=""
"You are not allowed to make Warp signs"=""
"You are not allowed to make\nTransfer Warp signs"=""
"You can only do this in-game"=""
"You do not have permission to do that."=""
"[SignWarp] Error loading \"%1%\""=""
"[SignWarp] INTERNAL ERROR"=""
"[SignWarp] Invalid coordinates %1%"=""
"[SignWarp] Loading \"%1%\""=""
"[SignWarp] No World specified"=""
"[SignWarp] No coordinates specified"=""
"[SignWarp] Portal to %1% created by %2%"=""
"[SignWarp] This command may only be used in-game"=""
"[SignWarp] Transfer portal %1% created by %2%"=""
"[SignWarp] Unable to load world \"%1%\""=""
"[SignWarp] Warp to %1%,%2%,%3% created by %4%"=""
"[SignWarp] World \"%1%\" does not exist!"=""
"dynamic-updates: OFF"=""
"dynamic-updates: ON"=""
"enabled /xyz command"=""
40 changes: 40 additions & 0 deletions resources/messages/spa.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
; spa.ini
"%1%-mode"="modo-%1%"
"- Player: %1% => %2%:%3%"="- Jugador: %1% => %2%:%3%"
"/xyz"="/xyz"
"Adventure"="Aventura"
"Can not teleport while holding sign!"="No se puede teletransportar si tiene un cartel en la mano!"
"Creative"="Creativo"
"Did you expect something to happen?"="Esperabas que ocurra algo?"
"Disabling FastTransfer support"="Des-habilitando compatibilidad con FastTransfer"
"Enabling FastTransfer support"="Habilitando carteles con FastTransfer"
"FAST TRANSFER NOT INSTALLED"="FAST TRANSFER NO ESTÁ INSTALADO"
"FastTransfer being used hope it works!"="Usando FastTransfer. Espero que funcione"
"N/A"="N/A"
"Nothing happens!"="No pasa nada!"
"Nothing happens..."="No pasa nada..."
"Returns x,y,z coordinates"="Muestra la ubicación x,y,z"
"Somebody removed FastTransfer!"="Algien borró FastTransfer!"
"Spectator"="Espectador"
"Survival"="Supervivencia"
"Teleporting..."="Teletransportando..."
"You are at %1%,%2%,%3%"="Usted está en %1%,%2%,%3%"
"You are not allowed to make Warp signs"="No tiene permiso para crear carteles de Warp"
"You are not allowed to make\nTransfer Warp signs"="No tiene permiso para create carteles the FastTransfer"
"You can only do this in-game"="Solo puede hacer eso en juego"
"You do not have permission to do that."="No tiene permitido hacer eso"
"[SignWarp] Error loading \"%1%\""="[SignWarp] Problemas cargando %1%"
"[SignWarp] INTERNAL ERROR"="[SignWarp] ERROR INTERNO"
"[SignWarp] Invalid coordinates %1%"="[SignWarp] Coordenadas no validas"
"[SignWarp] Loading \"%1%\""="Cargando \"%1%\""
"[SignWarp] No World specified"="[SignWarp] No hay mundo proporcionado"
"[SignWarp] No coordinates specified"="[SignWarp] No se proporcionó coordenadas"
"[SignWarp] Portal to %1% created by %2%"="[SignWarp] Portal a %1% creado por %2%"
"[SignWarp] This command may only be used in-game"="[SignWarp] Solo se puede usar "
"[SignWarp] Transfer portal %1% created by %2%"="[SignWarp] Portal de Transferencia a %1% creado por %2%"
"[SignWarp] Unable to load world \"%1%\""="[SignWarp] No se pudo cargar %1%"
"[SignWarp] Warp to %1%,%2%,%3% created by %4%"="[SignWarp] Warp para %1%,%2%,%3% creado por %4%"
"[SignWarp] World \"%1%\" does not exist!"="[SignWarp] %1% no existe"
"dynamic-updates: OFF"=""
"dynamic-updates: ON"=""
"enabled /xyz command"="Comando /xyz activado"
Loading

0 comments on commit 925b6c4

Please sign in to comment.