ClassSign
ClassSign
Features
- Create signs that, when punched, will fill your inventory/armor with pre-defined items based on classes.
- Define your own classes!
- As an op, disable/enable signs on the fly.
- Choose to clear the shown inventory, or whole inventory, before giving items, or not at all.
- Choose to overwrite the currently worn armor, or not.
- Give either items, armor, or both!
- Make it so that a sign can only be used once! These settings persist through reload, so players will not be able to use signs they've previously used after a server reload.
- Clear a user's sign usage history!
Summary
This plugin allows you to create signs which will allow you to fill your inventory with pre-configured items based on a class system. It will also allow you to replace Armor with pre-defined items. Anybody with the correct permissions (or if permissions isn't found - an op) can disable/enable signs on the fly, by right clicking the sign. To use the sign, punch it (left click).
You can also create a one-use sign, which can only be used by each player once.
Note: This plugin will also create a file called signs.dat in it's configuration folder. Do not edit this file, or delete it
If you have the correct permissions (or if you're an op), you can place class signs like so:
[Class] <class_name> <blank> <blank>
To create a One-Use sign, use this template:
[Class] <class_name> [One-Use] <blank>
If done correctly, the 4th line should change to a green [Active] tag.
Read the Configuration section below to find out how to define classes.
Screenshots
See images tab.
To-Do
- (possibly) change permission group when a sign is used?
- Add economy support.
- Add Permissions node to protect certain players from one use sign mode. If you have any suggestions, post them below and I may choose to implement it!
Settings
The configuration file properties.yml will be created with default values as shown below:
classes: Chef: items: 39:10,40:10,281:10 Knight: items: 267,320:5 armor: 306,307,308,309 Archer: items: 261,262:50,297:4 armor: 298,299,300,301 Armored: armor: 302,303,304,305 Builder: items: 44:64,44@2:64,44@3:64,44@4:64,44@5:64 overwriteArmor: true emptyInventory: false emptyWholeInventory: false
- classes - this is where all the class definition takes place. Following the default guidelines, you can specify your own class. Please note, when indenting, use FOUR SPACES (not tabs).
- Chef, Knight, Archer, Armored - these are sample classes, each with different item/armor definitions. For example, the Chef gets 10 brown mushrooms, 10 red mushrooms, and 10 wooden bowls. The Chef gets no armor (and if overwriteArmor is on, their armor is removed). The Knight gets an Iron sword and 5 cooked porkchops. The Knight also gets a full set of Iron armor. The Armored class gets a full set of Chainmail Armor. The Armored class gets no items (but if emptyInventory is on, the inventory is still cleared.) To define items/armor, use the Block IDs that can be found using www.minecraftwiki.net and searching the block name. To define an amount, use a colon, then the amount. Do NOT use amounts on Armor definitions. Armor definitions MUST be in this order: Helmet, Chestplate, Leggings, Boots. If you want to omit an Armor part, define a 0 (zero) (e.g. 0,303,304,305 will give full chainmail, except a helmet.) overwriteArmor - when set to true, the player's previous armor is removed, and then the new armor (if applicable) is given. Otherwise, the given armor will fill any "gaps." (e.g. if a player is already wearing a leather helmet, and selects the Armored class, they will keep their leather helmet, and be given Chainmail chestplate, leggings and boots.) The Builder class gets 64 of every possible slab. This shows how to use Data Values in items.
- emptyInventory - when set to true, the bottom 9 inventory slots (the ones always on show) will be cleared before items are given. Otherwise, items are given on top of this.
- checkVersion - when set to true, the plugin will perform a simple version check at every load/reload, and will report to the console when an update is available. When set to false, this check is disabled.
- emptyWholeInventory - when set to true, the player's whole inventory is cleared. This option OVERRIDES emptyInventory. If emptyInventory is set to false, but this is set to true, the whole inventory will still empty.
Permissions
These permission nodes will work with either Permissions 2.x, or Bukkit SuperPerms. When using SuperPerms, any admin permissions - and enable/disable permissions - will default to an op check, any other nodes will default to true for everyone.
- classign.user.place - allows the player/group to place Class Signs.
- classign.user.use - allows the player/group to use a sign.
- classign.admin.toggle - allows the player/group to toggle a sign between active and inactive by right-clicking.
- classign.admin.clearuser - allows the player/group to use the command that clears a user's sign usage history.
- classign.admin.add - allows the player/group to add a class using commands.
- classign.admin.remove - allows the player/group to remove a class using commands.
- classign.admin.items - allows the player/group to change the item output of a class using commands.
- classign.admin.armor - allows the player/group to change the armor output of a class using commands.
Commands
For all commands listed below, you can either use /cs, /classsign, or /classign.
- /cs clearuser <username>
This command clears the specified user's sign usage history, allowing him/her to re-use signs they've used before, even if one use sign mode is enabled.
Requires Permission: classign.admin.clearuser
- /cs class add <class name>
This command adds the specified class to the config file. It will not let you add a duplicate class.
Requires Permission: classign.admin.add
- /cs class remove <class name>
This command removes the specified class from the config file. This is irreversible. It will not let you remove a non-existant class.
Requires Permission: classign.admin.remove
- /cs class items/armor <class name> <values>
This command lets you change the item or armor output of a class. Please note, you *must* follow the same rules as in the configuration file. For items, you must define them with no spaces inbetween, just commas. For armor, you must not define an amount, and you must have 4 values, in top to bottom order.
Requires Permission: classign.admin.items OR classsign.admin.armor - depending on which command
ClassSign-2.1.jar could not be saved, because the source file could not be read.
Hey, im having a problem where when anyone clicks a sign it toggles state, even if they dont have the permission. Can you fix this?
What exactly does the one-use do?
Another epic plugin which I required on my server. Many thanks for creating this one!
Plz Update Thank you
Is there a way to add Color to the prefix on the sign, and also add color to the other text?
Please make so the sign can give permissions too!
Please do this make the permissions so that people can only use some signs?
thanks!
Two questions;
Can you add items with enchants on? So that you don't have to enchant everything yourself and I don't seem to be able to spawn (through the signs) splash potions, only normal potions. 373@8197:2 gives me 2 Health level 1 potions (like it should) but 373@16392:2 gives me 2 Weakness level 1 potions (non-splash) when it says that is the id for the splash potion.
I am not able to make classes using the /classign class add <classname> command at all. There are no classes added to the config. There is no output on the console and nothing in the chat as well. At first I believed it was a conflict with WorldEdit/WorldGuard because of their use of the /cs command as well, but even after removing it, no classes can be added from ingame.
The ingame addition of classes is really a neat feature and I'd like it if it was refined/fixed a bit more. Thanks!
is it possible to give items automatic enchantments?
Also, I dont get any items for leftclicking :(
@ChrizC
Dude can you add a feature that when he pick a class, thats it, no changing classes anymore if you will pick your first class.
why it is added? because, example when the archer have a golden apple(God apples) God apples give regeneration 50 sec, fire resistance, 3:00 min, and resistance 3:00, if the player pick the archer, obviously he will it the god apple, without the feature, he can able to change his class with the Powerupas stayong in his body, when he change to heavy which have all diamond armors with diamonds swords, and He is now powerful. and thats a bug i found :( please add this feature i beg this to you :( Just add it in the config: firstkitchoice: true
why it will not give me items???
when i rightclick the sign it just switch the [Active] to [Inactive] :(
@Pippiter69
@NemoD98
@HackerFinn
@HalomostGull3
@bigsin781
Hi guys. I'd love to update the plugin for you all, but it's a big undertaking and I'm currently floating in a reasonable amount of debt due to studying at University.
If any of you run a large server and could contribute a little donation in order to keep me fed for a little while, I'd really appreciate it. This isn't a requirement and I will try to update it for you all soon enough.
Not giving me the items when I use your classes
Anyone know if this works with dyed armour? That would be ideal for team events.
Please update and hurry with the permissions! :)
It would be awesome if this could change permissions group on sign usage. :)
I'm creating an RPG server where this would be perfect! :)
Please hurry! :)
UPDATE THIS
Need this updated!!!
Ok, so, I installed this correctly, and all defaults work, but I can't make any of my own classes. Whenever I do, the entire config becomes blank. Does this plugin not accept custom classes? Or, does this plugin not accept non-Vanilla items?