CostDistanceTeleporter
Description:
CostDistanceTeleporter [CDT] is a plugin that currently just supports vault and essentials that adds a configurable price per-block between warp distances and the player
Installation:
- Install the Vault version that matches CDT.
- Install the Essentials version that matches CDT.
- Install an economy plugin that supports vault (you can head over to the vault plugin page to see a list).
- Install the version of CDT that matches your bukkit version.
- NOTE! currently CDT only works with the dev version of Essentials found here: http://ci.ess3.net/viewType.html?buildTypeId=bt2
Commands:
- /cdt price - Gets the current price per-block
- /cdt setprice - Sets the current price per-block
- /cdt stats - Shows how much money has been spent on warps
Permissions:
- cdt.bypass - Bypasses CDT and just warps you without paying
- cdt.price - Gives access to /cdt price command
- cdt.setprice - Gives access to /cdt setprice command
- cdt.stats - Gives access to /cdt stats
- cdt.* - Gives access to all /cdt commands
Links:
Source: https://github.com/Deery50/CDT
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
Builds: http://ci.runetooncraft.com/job/CDT/
IRC: http://chat.mibbit.com/#[email protected]
*NOTE* CDT just uses the normal essentials.warps.[warpname] for per-warp permissions! Make sure you enable this in the config! *NOTE*
@Deery50
Can you update this for 1.8 when that comes out?
Anyone know if this works with cb1.7.2-r0.3?
@inkvii
Multi-world support will come soon. ;)
EDIT: 1.0.3 fixes this!
I found one serious problem about this plugin - when I try to warp from nether, it teleports me without asking to confirm that travel and charges no money for it. I just thought you would want to know about it ;)
Server output: 11:35:54 [SEVERE] Could not pass event PlayerCommandPreprocessEvent to CDT v1.0.2 11:35:54 org.bukkit.event.EventException 11:35:54 at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) 11:35:54 at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 11:35:54 at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) 11:35:54 at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) 11:35:54 at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerConnection.java:954) 11:35:54 at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.java:880) 11:35:54 at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:837) 11:35:54 at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49) 11:35:54 at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296) 11:35:54 at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116) 11:35:54 at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) 11:35:54 at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30) 11:35:54 at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590) 11:35:54 at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) 11:35:54 at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) 11:35:54 at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) 11:35:54 at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) 11:35:54 Caused by: java.lang.IllegalArgumentException: Cannot measure distance between Skull-Island_nether and Skull-Island 11:35:54 at org.bukkit.Location.distanceSquared(Location.java:381) 11:35:54 at org.bukkit.Location.distance(Location.java:364) 11:35:54 at com.runetooncraft.plugins.CostDistanceTeleporter.parseLocation.getDistanceCost(parseLocation.java:12) 11:35:54 at com.runetooncraft.plugins.CostDistanceTeleporter.Teleportlistener.onCommand(Teleportlistener.java:36) 11:35:54 at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source) 11:35:54 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 11:35:54 at java.lang.reflect.Method.invoke(Unknown Source) 11:35:54 at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) 11:35:54 ... 16 more
@inkvii
Here, join this irc and i'll ask more questions to help you out :) : http://client00.chat.mibbit.com/#[email protected]
@Deery50
yes, no addons whatsoever, just pure essentials (+ essentials chat, protect and spawn, which is included in the .zip file), nothing more
@inkvii
From what I could read it seems that Residence doesn't have an embedded economy plugin, it logs into vault for economical purposes. Do you mean that you are using the default essentials economy?
@Deery50
Sure, here you go: http://dev.bukkit.org/bukkit-plugins/residence/
@inkvii
I have never heard of the residence economy, can you link it to me? I also do not see it on vaults list.
@Deery50
exactly, only one i found is Residence, but it is on Vault's list
@inkvii
What do you mean any other economy plugin? Do you mean you don't have an economy plugin?
@Deery50
That's the problem, I don't have any other economy plugin.The version of Vault is 1.2.26. No, it doesn't tell me i have not sufficient funds, it writes nothing at all. Really wonder, where that problem lies :(
@inkvii
What economy plugin are you running? (it may not be compatible with vault) When the player does not have sufficient funds does it give the message saying you don't have sufficient funds? This plugin has been tested with all of them updated vault-compatible economy plugins. Even if your plugin does not support vault, I may be able to get it to work myself so just give me the name of the plugin if it isn't vault-compatible and I'll see. Thanks for your patience and nice remarks :)
@Deery50
Hello again :D I proudly must say that with new bukkit and essentials which is: Development Build 2.12 <
Use if you are testing onlyit is possible to run this plugin. Unfortunately, there is problem that plugin does not work with player's balance and even if player has not sufficient amount of money available, it still proceeds with warping without questions. I even tried to log in as new player without admin authority in case admin would have bypass ability implemented by default.
Final note - this reference (http://ci.ess3.net/viewType.html?buildTypeId=bt2**) doesn't exist anymore
Keep up the good work, I know how hard it is to deal with unexpected problems at programming ;)
@inkvii Hmm, very weird error. I'm looking it to it. What version of essentials are you using? Make sure you use the latest dev build from: http://ci.ess3.net/viewType.html?buildTypeId=bt2
[Edit] Ah yes, it is because of conflicting versions. Just grab the latest version of essentials from the build server I posted above, I had to either pick between it working for the older version...or the newer version so instinctively I went for the newer one. Sorry for all the trouble though :(. I have to do a pre-command-process-event for this whole plugin to work, so sadly it is very version specific intensive.
It posts me this error:
22:18:53 [INFO] [CDT] Enabling CDT v1.0.0 22:18:53 [INFO] [CDT] Essentials integration enabled 22:18:53 [INFO] [CDT] Essentials-Spawn integration enabled 22:18:53 [INFO] [CDT] Found Vault 22:18:53 [SEVERE] Error occurred while enabling CDT v1.0.0 (Is it up to date?) java.lang.NoClassDefFoundError: net/ess3/api/InvalidWorldException at com.runetooncraft.plugins.CostDistanceTeleporter.CDT.onEnable(CDT.java:32) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_6_R2.MinecraftServer.l(MinecraftServer.java:313) at net.minecraft.server.v1_6_R2.MinecraftServer.f(MinecraftServer.java:290) at net.minecraft.server.v1_6_R2.MinecraftServer.a(MinecraftServer.java:250) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:151) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.ClassNotFoundException: net.ess3.api.InvalidWorldException at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 12 more
Btw: this plugin is very good idea, I hope one day it will be fully functional on my server ;)
V1.0.1 will support Essentials-Spawn as well so you can add distance price to /spawn. It is currently awaiting approval, you can get the dev build (not endorsed by Bukkit) from the build server.
@Deery50
Lookie here! The plugin was approved!!
First file currently awaiting approval :)