KitSigns | Free | Create/update kits

Status
This thread has been locked.

Swanis

Supreme
Feedback score
6
Posts
0
Reactions
39
Resources
4
KitSigns
Why?
I created this plugin as I've never seen a kitsigns plugin that has the ability to create/update/delete kits; they all just have premade setups of some kits.

Features:
- Equip kits by clicking on signs
- Create/update/delete kits
- Customize the kitsign
- Customizable messages

The plugin comes with 4 default kits (diamond, bard, archer and rogue), but you can update the kits to your liking if you don't like their setup.

How?
In order to create a kitsign, create a sign looking like this:
[Kit]
%kit%

^ With %kit% being the name of a kit
You will also need the permission 'kitsigns.access' to create a kitsign.

Commands:
- /kitsigns createkit <name> | Create a kit with your current inventory
- /kitsigns updatekit <kit> | Update a kit's inventory to your current inventory
- /kitsigns deletekit <kit> | Delete a kit

Permission: kitsigns.access

kitsign_lines:
one: '&8&m-------------'
two: '&9[Kit]'
three: '&e%kit%'
four: '&8&m-------------'

KITSIGNS_HELP:
- '&8&m--------------------------'
- '&e/kitsigns createkit <name>'
- '&e/kitsigns updatekit <kit>'
- '&e/kitsigns deletekit <kit>'
- '&8&m--------------------------'

NOT_A_PLAYER: '&cYou need to be a player to execute this command'
NO_PERMISSION: '&cYou do not have permission to execute this command'
ALREADY_EXISTS: '&cKit %kit% already exists'
DOES_NOT_EXIST: '&cKit %kit% does not exist'
CREATED_KIT: '&eCreated kit &6%kit%'
UPDATED_KIT: '&eUpdated kit &6%kit%'
DELETED_KIT: '&eDeleted kit &6%kit%'
SELECTED_KIT: '&eYou selected the kit &6%kit%'
KITSIGN_PLACED: '&ePlaced kitsign for the kit &6%kit%'

Download can be found at https://github.com/swanis/kitsigns-plugin/releases

You can also view the source code at https://github.com/swanis/kitsigns-plugin
^ Code improvements/feedback is also greatly appreciated
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Swanis

Supreme
Feedback score
6
Posts
0
Reactions
39
Resources
4
Hey,

I noticed you used lambda here; https://github.com/swanis/kitsigns-...is/kitsigns/commands/KitSignsCommand.java#L79

Just a thumbs up that if you have string list and in such case you use can use method reference aka 'double colon - ::'
[ Configuration.KITSIGNS_HELP.forEach(player::sendMessage); ]

As well for other stuff you could lombok to make your work a lot easier :p!
Thanks, will keep that in mind for future projects. I don't like to use a bunch of dependencies so that's why I'm not using lombok.
 

Swanis

Supreme
Feedback score
6
Posts
0
Reactions
39
Resources
4
isn't this pretty much a default in essentials??
It is, most people in the hcf community still uses plugins such as these though because they'd get a lot of other stuff they don't need if they were to install Essentials.
 

Vapidity

Supreme
Feedback score
3
Posts
35
Reactions
24
Resources
0
It is, most people in the hcf community still uses plugins such as these though because they'd get a lot of other stuff they don't need if they were to install Essentials.
ah, ok, didn't realised that.
 

zt

Alfie
Supreme
Feedback score
14
Posts
536
Reactions
172
Resources
0
I'm literally clicking on the sign for the diamond kit but I'm not getting the kit
 

PTech

Feedback score
6
Posts
422
Reactions
261
Resources
0
Hey,

I noticed you used lambda here; https://github.com/swanis/kitsigns-...is/kitsigns/commands/KitSignsCommand.java#L79

Just a thumbs up that if you have string list and in such case you use can use method reference aka 'double colon - ::'
[ Configuration.KITSIGNS_HELP.forEach(player::sendMessage); ]

As well for other stuff you could lombok to make your work a lot easier :p!
Lombok is bad for documentation. This is an open source project and it should not contain lombok.
 

rhian

the godfather
Supreme
Feedback score
1
Posts
49
Reactions
36
Resources
0
I made something similar to this like a year ago but hard coded for someone, nice thread
 
Status
This thread has been locked.
Top