EnderPearl Cooldown
Ender Pearl Cooldown
Simple Bukkit plugin to add a cooldown or cost to ender pearls.
Goals
- balance PvP
- prevent ender pearl glitching (moving through protected blocks by spamming pearls)
Features
- add cooldown to ender pearls
- disable ender pearls completely on a per-user basis (permission)
- charge money for throwing pearls
- customizable messages for failed pearl throws
Installation
Drop the jar in your craftbukkit/plugins folder. Per default, enderpearls will have a cooldown of 3 seconds.
Configuration
Example plugin.yml
(default settings):
cooldown: 3000
price: 0
showMessage: true
cooldown
is the time in milliseconds that players need to wait before throwing pearls.price
is how much each pearl throw costsshowMessage
determines whether users get feedback on unsuccessful throws or it just silently fails.
Permissions
enderpearl.cooldown:
default: true
Ender pearl cooldown applies to players with this permission.
enderpearl.use:
default: true
Ender pearls may be used by players with this permission.
enderpearl.pay:
default: true
Players with this permission pay for each pearl throw.
enderpearl.admin:
default: op
Use admin command /epc reload
Help and resources
Find me on Twitter, see the source on Github, report issues.
Stat Collections
We use metrics to collect stats! We only collect basic things such as version type, and players online. If you want to see everything, click on the graph. Go into /plugins/PluginMetrics/config.yml to disable stat collecting if you wish.
@dotapurex1
Could you check the config file and make sure it is saved in utf-8 format?
Getting this error
org.bukkit.configuration.InvalidConfigurationException: unacceptable character '?' (0xFFFD) special characters are not allowed in "<string>", position 293 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138) at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:202) at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:121) at net.sqdmc.epc.EPC.reloadConfig(EPC.java:88) at net.sqdmc.epc.EPC.onEnable(EPC.java:56) 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: unacceptable character '?' (0xFFFD) special characters are not allowed in "<string>", position 293 at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70) at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50) at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) ... 16 more
I posted 2 tickets. One for opening chests with pearls in your hand, and one for a plugin incompatibility
@dotapurex1
I'm not sure, perhaps your text editor saved in the wrong encoding. Make sure to save in UTF-8 encoding.
Why does the color symbol §c work for you? But when i typed &c in the config, it doesn't work?
@ebenwert
Well, because when i took off that symbol, everything worked fine.
What gave it off was this error line in the console.
org.bukkit.configuration.InvalidConfigurationException: unacceptable character '?' (0xFFFD) special characters are not allowed 25.05 22:25:04 [Server] SEVERE Cannot load plugins/EnderPearlCoolDown/config.yml
@dotapurex1
Nope, those are the standard color symbols used by minecraft.
@ebenwert
I think i know why, it's because you have the funky symbols as the colors. like §c, could you please change it so it uses the standard color symbols? Like &c
@dotapurex1
could you message me your config.yml?
Hello,
Im getting this error when i want to reload the plugin?
org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70) 25.05 22:25:04 [Server] INFO in "<string>", position 294 25.05 22:25:04 [Server] INFO Caused by: unacceptable character '?' (0xFFFD) special characters are not allowed 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.Packet3Chat.handle(Packet3Chat.java:44) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:840) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.java:883) 25.05 22:25:04 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerConnection.handleCommand(PlayerConnection.java:965) 25.05 22:25:04 [Server] INFO at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:523) 25.05 22:25:04 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189) 25.05 22:25:04 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 25.05 22:25:04 [Server] INFO at net.sqdmc.epc.EPC.onCommand(EPC.java:105) 25.05 22:25:04 [Server] INFO at net.sqdmc.epc.EPC.reloadConfig(EPC.java:88) 25.05 22:25:04 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117) 25.05 22:25:04 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:175) 25.05 22:25:04 [Server] INFO at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105) 25.05 22:25:04 [Server] INFO at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138) 25.05 22:25:04 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) 25.05 22:25:04 [Server] INFO in "<string>", position 294 25.05 22:25:04 [Server] INFO org.bukkit.configuration.InvalidConfigurationException: unacceptable character '?' (0xFFFD) special characters are not allowed 25.05 22:25:04 [Server] SEVERE Cannot load plugins/EnderPearlCoolDown/config.yml
@myrrdinas @dotapurex1
Just uploaded a version with the showMessage bug fixed and built against Bukkit 1.5.2 :)
@ebenwert
Done :) Will be looking forward to this being added.
@podus_
Sure, I could try that (when I have time). Could you open a ticket, so I don't forget?
Do you think it would be possible for you to disable throwing of enderpearls when players are in blocks to add in another prevention feature to try to stop enderpearl glitching.
@dotapurex1
I think I can get around to it within the next few days.
@ebenwert
How long you think this will take you to update?
@dotapurex1
Thanks for notifying me. I'll try to see to it soon.
Doesn't work on the latest 1.5.2 dev build, please update!
showMessage: false Didn't work.
Confirmed to work on 1.5.2
good plugin.