Sword Asker
Sword Asker is a plugin designed for guards on prison servers. If a guard cannot count down fast enough or properly while trying to get someone to hand over their contraband item, Sword Asker is a plugin that asks for people's contraband items including: /sword (default) and other commands that can be added. Make sure the message path names are exactly the same as the previous.
Planned Features:
- Asking for a weapon from in a specific area.
- Displaying the player's "head" name as a different color when being targeted.
- Asking for a contraband weapon by selecting an item in the target's inventory.
Commands
- /sword <player> Asks the player for their sword then gives a countdown warning with the sender's name. This is the default command in the plugin, this can be changed in the configuration file, other commands can be added as well.
- /swordaskerreload Reloads the configuration file.
- /swordaskerinfo Checks updates from the plugin.
Permissions
- swordasker.sword Gives access to the /sword command.
- swordasker.swordaskerreload Gives access to the /swordaskerreload command
- swordasker.swordaskerinfo Gives access to the /swordaskerinfo command
- swordasker.resistdeath When death for logging is enabled, this permission prevents the user from logging into their death.
Versions
- v1.8.1 Fixed some errors.
- v1.8 Added custom commands and other new features!
- v1.7.23 I further tested Sword Asker and found that a lot of errors were left out while typing the command at odd times, (like when the player is dead) added broadcasting with messages that tell you when a player resists an arrest during a countdown, such as going offline.
- v1.7.22 The "for" method was completely removed due to code having to do with the configuration file not to work properly.
- v1.7.21 Added a changelog menu, commands are now username sensitive, disabled asking contraband from yourself (configure), removed the other weapon commands (preparation for custom commands), able to broadcast messages "fixed" (configure), customize the duration of the countdown (configure).
- v1.7.2 Fixed the custom permissions bracket, messages can now be sent publicly.
- v1.7.1 Updated to 1.8.1, able to edit the prefix, added a reload command, able to customize permissions (except for reload), custom commands are under way!
- v1.7 Less messages to edit, able to edit ALL the text, doesn't have to be 20 ticks anymore, more code clean up, removed all configuration variables and converted them into one, the default text for messages is slightly off instead of everything being.
- v1.6 Added a Configuration File with editable messages.
- v1.5 Updated to 1.7.4, Temporarily removed PvP abuse function commands and seeing what command someone typed. To prevent glitches, now using Beta Builds instead of Developer Builds.
- v1.4 Updated to 1.6.1, Added PvP abuse function.
- v1.3 Added Developer Build support, Removed Wheat, Added Drug, Rod, and Flint.
- v1.2 Changed the error-ed message "You do not have have access to that command!" to "You do not have access to that command!"
- v1.1 Added Bow, Arrow, and Wheat.
- v1.0 Release
Disclaimer: You may not post here and ask me to develop for your server, and you may not ask to help develop my plugins. That is private information.
Plugin has been updated.
Requested Feature
Command
Permission
@THXMINECRAFT
Planned Features:
Sword Asker v1.7.1
Includes:
Sword Asker v1.7
Fixes, Including:
Release is between 12 - 48 Hours.
@THXMINECRAFT
Excellent :) Thank you very much
Good luck sir
@Iwitrag
Oh, I see what you are saying, I never thought of that. This will actually make it easier for the configuration file. Yes, I will make a transition of a custom time before the countdown, so the player will have enough time to know what the sender is asking for. I will update this plugin in a couple of days maximum.
Okay, I have tried.
One small suggestion: When I ask a player to hand over a sword for example, it is too fast - player cannot even notice, that I have asked him for that, because it will just start to countdown. So my suggestion is to make it possible to extend the time of countdown and make translation like:
countdown: 'You have <x> seconds to hand it over!'
Very interesting plugin, I'll try it out! :)
Sword Asker 1.6 Features:
Upload / Release less then 24 hours. :)
It's fine, it works now:) It's because Mac Java 7 JRE isn't stable but JDK is
I checked my Java version and I've got Java 7 Update 45 I got Craftbukkit-1.7.2-R0.2 Beta Build and used that but it still says the exact same error:/
@liambell10
What craft bukkit are you using? It depends on if your craft bukkit is 1.7 and if your Java Version is updated with java 7, because I just ran it and it works fine.
- Edit-Try using Craftbukkit-1.7.2-R0.2 Beta Build or Later and that might fix it.
It still doesn't seem to work, even after using the updated version, the full error code is:
Could not load 'plugins/Sword_Asker.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: org/thxminecraft/swordasker/Main : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:308) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:233) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] Caused by: java.lang.UnsupportedClassVersionError: org/thxminecraft/swordasker/Main : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) [?:1.6.0_65] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) [?:1.6.0_65] at java.lang.ClassLoader.defineClass(ClassLoader.java:621) [?:1.6.0_65] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [?:1.6.0_65] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) [?:1.6.0_65] at java.net.URLClassLoader.access$000(URLClassLoader.java:58) [?:1.6.0_65] at java.net.URLClassLoader$1.run(URLClassLoader.java:197) [?:1.6.0_65] at java.security.AccessController.doPrivileged(Native Method) [?:1.6.0_65] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [?:1.6.0_65] at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [?:1.6.0_65] at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [?:1.6.0_65] at java.lang.Class.forName0(Native Method) [?:1.6.0_65] at java.lang.Class.forName(Class.java:249) [?:1.6.0_65] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
This is the error i get in the console, it still appears after the update you made, I don't know why:/
@liambell10
I just updated it. It should work now?
I'm just wondering when are you going to fix the Unsupported major.minor version 51 error, just because I have a server which needs the plugin asap, the latest update doesn't seem to fix that problem, sorry for mentioning it twice but it's important haha
Thanks --
@liambell10
thank you i will fix that.
Hi, for some reason when I installed this plugin into my server I get an error saying:
Unsupported major.minor version 51
I'm sure this means the plugin needs to be updated to support the latest version of Java.
Thanks
Sorry for the large delay, I just figured out a major bug with all code I need to fix before I go any further sorry for the wait.
@THXMINECRAFT
Please update it soon! Would love to have custom messages! :)