This plugin adds crates to your server for you to use, maybe even use them as treasure chests!
This plugin has the ability to use virtual and/or physical keys with a GUI to convert a key between them. You can also have as many crates and prizes as you want.
This plugin requires my library plugin
AuraAPI.
Commands:
- Aliases: /crates, crate, cr
/auracrates - Tells you the plugin's commands.
/auracrates reload - Reloads the plugin.
/auracrates keys <crate> - Check how many virtual keys you have.
/auracrates convert <crate> - Convert keys between physical and virtual.
/auracrates set <crate> - Sets the block to the crate.
/auracrates unset - Unsets the block from a crate.
/auracrates give <player> <type> <crate> [amount] - Gives a player (a) crate key(s).
/auracrates giveall <type> <crate> [amount] [alts] - Gives everyone online (a) crate key(s).
Permissions:
/auracrates - auracrates.help & auracrates.admin.help
/auracrates reload - auracrates.admin.reload
/auracrates keys <crate> - auracrates.keys
/auracrates convert <crate> - auracrates.convert
/auracrates set <crate> - auracrates.admin.set
/auracrates unset - auracrates.admin.unset
/auracrates give <player> <type> <crate> [amount] - auracrates.admin.give
/auracrates giveall <type> <crate> [amount] [alts] - auracrates.admin.giveall
This plugin uses bstats, if you don't want to contribute to bstats disable bstats in the bstats folder.
PlaceholderAPI Placeholders:
- %crates_keys_{crate}% - Displays the amount of keys you have for the specified crate.
config.yml
Code (YAML):
#-----------------------------------------#
# #
# AuraCrates #
# by SpokenWig620933 #
# version: 1.0.6 #
# #
#-----------------------------------------#
general:
holograms
:
# If holograms are enabled.
# I suggest keeping true, but it requires a provider.
enabled
: true
# The provider holograms will use.
# Available: Auto, CMI, HolographicDisplays
provider
: Auto
keys
:
# Keys that are saved in the database instead of an inventory.
virtual:
enabled
: true
# Keys that players hold in their inventories and such.
physical:
enabled
: true
# The item keys will be.
material
: TRIPWIRE_HOOK
# If the key item should look enchanted/glowing.
glowing
: true
# The level of restriction for physical keys to stop fakes.
# 1 - Low - Just checks Name and Item.
# 2 - Strict - Checks Name, Item, and NBT Tag (Old physical keys WILL NOT WORK!).
restriction-level
: 2
# Prevents players in creative from duplicating the key item.
prevent-creative-dupe
: true
# If keys can be converted between Physical and Virtual.
# ONlY WORKS IF BOTH Physical AND Virtual KEYS ARE ENABLED!
conversion-enabled
: true
crates
:
# The cooldown per player to using a crate after it shows the green panes(in ticks).
cooldown
: 80
lang.yml
Code (YAML):
general
:
# The prefix of messages.
prefix
: '&8
[&3&lAuraCrates&8
] '
# The message sent when a player clicks a crate without a valid key.
denied-key
: '&cYou must use a
{key-name
}&c to use this crate!'
# Message sent when the player is on cooldown.
cooldown-msg
: '&cYou must wait for the cooldown time!'
# Message sent when you don't have the right permission.
permission-msg
: '&cYou do not have the permission to execute this command!'
# Message sent when trying to set an invalid block as a crate.
invalid-block
: '&cThat is an invalid block type!'
# Message sent when you specify an invalid crate.
invalid-crate
: '&cYou must specify a valid crate!'
# Message sent when a block isn't a crate.
invalid-crate-block
: '&cThat block isn''t a crate!'
# Message sent when you specify a invalid key type.
invalid-keyType
: '&cYou must specify if it is a physical or virtual key!'
# Message sent when you input a player that doesnt exist.
invalid-player
: '&cYou must specify a valid player!'
# Message sent when using the keys command.
keys-reply
: '&bYou have&3
{keys
}
{key-name
}.'
# Message sent when successfully setting a crate block.
set-success
: '&aYou successfully set the
{name
}&3 crate&a to&5
{x
}&a,&5
{y
}&a,&5
{z
}&a in&d
{world
}'
# Message sent when successfully unset a crate block.
unset-success
: '&aYou successfully unset the
{name
}&3 crate&a from&5
{x
}&a,&5
{y
}&a,&5
{z
}&a in&d
{world
}'
# Message sent when you have given a key.
gave-key
: '&aYou have successfully given a
{key-name
}&a x
{amount
} to
{player
}'
# Message sent when you have given all players a key.
gave-all-key
: '&aYou have successfully given a
{key-name
}&a x
{amount
} to everyone.'
# Message sent when you receive a key.
received-key
: '&bYou have received a
{key-name
}&b x
{amount
} from
{player
}'
# Message sent when you receive a key.
received-all-key
: '&bYou have received a
{key-name
}&b x
{amount
} from
{player
}'
# Messages sent when opening a GUI.
gui-open:
convertion
: '&bOpen conversion GUI for
{name
}&3 crate
...'
# Help message sent to people that have the auracrates.help permission(doesn't send if they have auracrates.admin.help).
help
:
- '&b
------- &3&lAuraCrates &b
-------'
- '&7- &9
{cmd
} keys <crate> &7- &fCheck how many vitural keys you have.'
- '&7- &9
{cmd
} convert <crate> &7- &fConvert keys between physical and virtual.'
- '&b
----------------------------------'
# Help message sent to people that have the auracrates.admin.help permission.
admin-help
:
- '&b
------- &3&lAuraCrates - Admin &b
-------'
- '&7- &9
{cmd
} keys <crate> &7- &fCheck how many virtual keys you have.'
- '&7- &9
{cmd
} convert <crate> &7- &fConvert keys between physical and virtual.'
- '&7- &9
{cmd
} reload &7- &fReloads the plugin.'
- '&7- &9
{cmd
} set <crate> &7- &fSets the block to the crate.'
- '&7- &9
{cmd
} unset &7- &fUnsets the block from a crate.'
- '&7- &9
{cmd
} give <player> <type> <crate>
[amount
] &7- &fGives a player
(a
) crate key
(s
).'
- '&7- &9
{cmd
} giveall <type> <crate>
[amount
]
[alts
] &7- &fGives everyone online
(a
) crate key
(s
).'
- '&b
------------------------------------------'