Destroy The Core (DTC)! (25% OFF)

Status
This thread has been locked.

Throns

Java Developer
Premium
Feedback score
3
Posts
164
Reactions
107
Resources
0
Destroy The Core
Simple, lightweight and fun ^_^

Features
• Lightweight plugin
• Easy to use
• Keys system for loot
• Unique
• Allows multiple cores activated at the same time
• Simply one permission to manage​
Commands
dtc.admin:

• /dtc wand - Gives wand to select a core (needed only to create)
• /dtc create <core> <points> - Create a core.
• /dtc remove <core> - Remove a core.
• /dtc start <core> - Start a core.
• /dtc stop <core> - Stop a core.
• /dtc list - List of the created cores.
• /dtc status <core> - Information about the specified core.
• /dtc setloot - Set the loot.
• /dtc loot - See the loot.
• /dtc version - Displays the version and the author.​
no perms:
• /dtc loot - See the loot.
• /dtc version - Displays the version and the author.
• /dtc list - List of the created cores.
• /dtc status <core> - Information about the specified core.​
Permissions
• These are showed above.​
Support
• If you find a bug or have problems with the plugin, please contact me via MP.​
TO-DO!
• Add a regeneration system (if the core isn't broken for 1 minute, it starts to regenerate 1 point every 15 seconds) Done!
• Make the amount of items given in the loot customizable
• Make all the messages fully customizables Done!​
Config showcase
#
# Destroy the Core v1.7
# Made by DiegoM (Throns)
#

# Configurable messages (there are differente placeholders for the different messages)
# Keep in mind that it doesn't matter if you don't use a placeholder.

#####################################################################
# #
# Commands section #
# #
#####################################################################

# Global messages
# When someone does not have permission to execute X command.
Denied: '&cPermission denied.'

# This message is for the commands like start, stop, status, etc. placeholders: {unknown}
Unknown core: '&cThe core {unknown} does not exist.'

# Message sent when the player is admin and the arguments are invalid or less/more than needed.
Invalid command admin: '&cUsage: /dtc <create|remove|start|stop|list|status|wand|setloot|loot|version>'

# Message sent when the player isn't admin and the arguments are invalid or less/more than needed.
Invalid command user: '&cUsage: /dtc <list|status|loot|version>'

# Commands: wand, status, list, stop, start, remove, create, version, loot, setloot
# Wand
# Correct command usage: /dtc wand.
Wrong wand use: '&cUsage: /dtc wand.'
Received wand: '&aReceived the DTC wand to select a core.'

# List - placeholders: {core}, {active} (active returns a red cross or a green tick)
# Cores in list is an example of how the cores will be shown in the list, this doesn't means that only 1 core will be shown.
# Correct command usage: /dtc list
List header: '&a&m------------&7[&2DTC&7]&a&m------------'
Cores in list: '&7- &a{core} &7(Active: {active}&7)'
No cores set: '&7- No cores set.'
Wrong list use: '&cUsage: /dtc list.'

# Status - placeholders: {core}, {active} (returns red false or green true), {points}, {pointsleft}, {x}, {y}, {z}
# Correct command usage: /dtc status <core>
Core status:
- '&a&m--------&7[&2{core}&7]&a&m--------'
- '&7- Active: {active}&7.'
- '&7- Coordinates: &a{x}&7, &a{y}&7, &a{z}&7.'
- '&7- Points: &a{pointsleft}&7/&a{points}&7.'
Wrong status use: '&cUsage: /dtc status <core>.'

# Start - placeholders: {core}
# Correct command usage: /dtc start <core>
Sender started: '&aYou successfully started the core {core}.'
Already active: '&cThe core {core} is already active.'
Wrong start use: '&cUsage: /dtc start <core>.'

# Stop - placeholders: {core}
# Correct command usage: /dtc stop <core>
Sender stoped: '&aYou successfully stoped the core {core}.'
Not active: '&cThis core ({core}) is not active.'
Wrong stop use: '&cUsage: /dtc stop <core>.'

# Remove - placeholders: {core}
# Here the 'Uknown core' message is shown.
Sender removed: '&aSuccessfully removed the core {core}.'
Wrong remove use: '&cUsage: /dtc remove <core>.'

# Create - placeholders: {core}, {points}
Sender created: '&aSuccessfully created the core {core} with {points} points.'
Points not numbers: '&cYou can not set letters as points..'
Already created: '&cThe core {core} is already created.'
Wrong create use: '&cUsage: /dtc create <core> <points>.'
No selection: '&cPlease use: /dtc wand - and select a core before trying to create one.'

# Version - placeholders: {version}, {author}
# Please do not remove this, this is the only way to get some advertisement :(
Version header: '&7&m------------[&a DTC &7&m]------------'
Version display:
- '&7- Currently using version: &2{version}'
- '&7- Author: &a{author}'

# Loot
Showing loot: '&aThis is the DTC loot.'
Wrong loot usage: '&cUsage: /dtc loot.'

# Setloot
# If this is set to true, I will send a message to the player who executed the command /dtc setloot once he/she closes the inventory.
Message player: false
# When you close the inventory opened with /dtc setloot the loot is saved automatically.
Saved loot: '&aSaved the new DTC Loot.'
Wrong setloot usage: '&cUsage: /dtc setloot.'


#####################################################################
# #
# Events section #
# #
#####################################################################

# placeholders: {core}
Started core: '&8[&2DTC&8] &2{core} &ahas started. Use /dtc status for more info.'

# placeholders: {player}, {core}
Stoped core: '&8[&2DTC&8] &2{core} &ahas been stoped.'

# placeholders: {player}, {core}, {keys}
Destroyed core: '&8[&2DTC&8] &2{player} &adestroyed &2{core} &aand received &7x{keys} &akeys.'

# placeholders: {player}, {core}, {points}
# This is the message sent to the console and all the players excepting the one who broke a piece
Break piece: '&8[&2DTC&8] &2Someone &adestroyed a piece of &2{core} &c({points})'

# placeholders: {core}, {points}
# This is the message sent to the player who broke a piece
Player break: '&8[&2DTC&8] &2You &adestroyed a piece of &2{core} &c({points})'

# placeholders: {core} (I do not like using it)
Break inactive core: '&cThis core is not active.'

# Loot:
Keys amount: 2


Video


IMPORTANT: When you update, delete the old config and reload.

I'll update this soon, I'm making a new version right now, made from scratch with more features, bug free and optimized code. :tup:
 
Last edited:
Status
This thread has been locked.
Top