Add a chat commandSolved
Great plugin, but we need to be able to turn it on/off for our self via chat command (e.g. /tm or /teleportmarker). Please add this, it shouldn't be too complicated, i guess, since there's dozens of plugins with that function (this one, for example).
Also, you should add a check if the player is mounted. Plugin is trying to teleport when mounted and sends message into chat that i'm teleported. when I'm still sitting in my chair xD
 
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 @Talha 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
I will add chat command and fix chair. Thanks.
You mean now you will use my code I sent you via private messages, even when I asked you not to do so? I have created my own plugin and sent it for validation. This is not right way to do things, you know?..
 
I will use my code, i will not add /tm <time> but i can add only command to toggle.
And i will fix chairs.
Sure, you will use your code, right. 8 month no update, and when I posted my code you will use yours. Why did you asked for my code in private messages then? Next time I will not share my code.

I can use few parts of the your code and add the your name to the Credits part. No problem.

Locked automatically