I completely rewrote this plugin. Not sure how to post it correctly
I've added lots of stuff and I think now it's much better ^_^
Make sure to delete old config/translation files before upgrading to this one
P.S. maybe should update the pluginpage, I don't know how to request that.
When player placing marker on map (`+map`) this plugin allow to instantly teleport player to that marker, if player has a permission, or is admin and teleporting without permission for andmins set in config file. Plugin simply teleports you to `x y z `coordinates. `x` and `z` readed from marker placed on map, and you can set `y` in config. While you will be fallen from that hight you will get Godmode on. You can set duration time for Godmode in options.
# Permissions
`teleportmarker.use` -- Allows player to teleport to map markers
# Chat Commands
* `/tm` - Enable/Disable teleporting to map marker
* `/tm <time (seconds)>` - Set teleport cooldown time.
# Configuration
```
{
"Use permissions": true,
"Teleportation height (coordinate y)": 120,
"Global settings": {
"Allows admins to teleport without permission": true,
"Default enabled": true,
"Default cooldown": 10.0,
"Maximum cooldown": 15.0,
"Minimum cooldown": 5.0
},
"Chat settings": {
"Chat command": [
"tm",
"teleportmarker"
],
"Chat prefix": "[Teleport Marker]: ",
"Chat prefix color": "#00FFFF",
"Chat steamID icon": 0
}
}
```
# Localization
```
{
"NotAllowed": "You do not have permission to use this command",
"Enabled": "<color=#8ee700>Enabled</color>",
"Disabled": "<color=#ce422b>Disabled</color>",
"Teleported": "Teleported to <color=#FFA500>{0}</color>. Godmode is now <color=#8ee700>on</color> for <color=#FFA500>{1}</color>s while teleport is on cooldown.",
"CooldownEnded": "Godmode is now <color=#ce422b>off</color>. You can teleport again.",
"TeleportMarker": "Teleporting to map marker is now {0}",
"TeleportMarkerCooldown": "Teleporting to map marker cooldown set to <color=#FFA500>{0}</color>s.",
"TeleportMarkerCooldownLimit": "Teleporting to map marker cooldown allowed is between <color=#FFA500>{0}</color>s and <color=#FFA500>{1}</color>s",
"TeleportMarkerMounted": "You can't teleport while seated!",
"TeleportMarkerDead": "You can't teleport while being dead!",
"SyntaxError": "Syntax error, type '<color=#FFFF00>/{0} <help | h></color>' to view help",
"TeleportMarkerSyntax": "<color=#FFFF00>/{0} </color> - Enable/Disable teleporting to map marker",
"TeleportMarkerSyntax1": "<color=#FFFF00>/{0} <time (seconds)></color> - Set teleport cooldown time, the allowed time is between <color=#FFA500>{1}</color>s and <color=#FFA500>{2}</color>s."
}
```
# Credits
* **Talha**, for the original version of this plugin
* **MON@H**, for the re-write of this plugin