diff options
author | Dico <dico.karssiens@gmail.com> | 2018-09-26 07:08:42 +0100 |
---|---|---|
committer | Dico <dico.karssiens@gmail.com> | 2018-09-26 07:08:42 +0100 |
commit | 520ae530d2de076fa9e87da7f04fcf78e080f4de (patch) | |
tree | dafbe3c14d5b6cbe49eef4f87499d35d1c69676d /src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt | |
parent | 2225bdae95b3de4985347edf30ae31a28f73f35b (diff) |
Make progress
Diffstat (limited to 'src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt')
-rw-r--r-- | src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt b/src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt index 750fd96..67b873b 100644 --- a/src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt +++ b/src/main/kotlin/io/dico/parcels2/command/CommandsGeneral.kt @@ -16,7 +16,7 @@ import io.dico.parcels2.util.ext.uuid import org.bukkit.block.Biome import org.bukkit.entity.Player -class CommandsGeneral(plugin: ParcelsPlugin) : AbstractParcelCommands(plugin) { +class CommandsGeneral(plugin: ParcelsPlugin, parent: SpecialCommandAddress) : AbstractParcelCommands(plugin) { @Cmd("auto") @Desc( @@ -43,6 +43,10 @@ class CommandsGeneral(plugin: ParcelsPlugin) : AbstractParcelCommands(plugin) { ) fun ParcelScope.cmdInfo(player: Player) = parcel.infoString + init { + parent.addSpeciallyTreatedKeys("home", "h") + } + @Cmd("home", aliases = ["h"]) @Desc( "Teleports you to your parcels,", |