DesirePrefix - Custom Command Prefixes [Free] [v1]

Status
This thread has been locked.

Harry

Rustacean
Management
Feedback score
10
Posts
1,606
Reactions
876
Resources
0
Information:
This plugin allows you to set a custom prefix in-game to trigger any command, similar to how a lot of Discord bots allow you to set the command prefix.

e.g. Instead of running '/help' in-game, you could use '!help' if the prefix '!' is set, but you can also set multiple prefixes at once.

This is only the first version, so there may be a few bugs or glitches that will get ironed out.

Features:
  • Set multiple prefixes to trigger any command
  • Triggers any other plugin or server commands (eg. /help, /op)
  • Configure everything in-game or in the config
  • Configure permissions and messages
  • Disable the default '/' prefix
  • Warns if there's a newer version
  • Active support via DM or Discord server
  • Robust and efficiently coded
  • Daily, if not weekly updates
ezgif-4-63e06c8d1b0d.gif

Screenshot 2018-12-29 at 16.50.25.jpg

ezgif-4-e21997454d5f.gif

Screenshot 2018-12-29 at 16.50.43.jpg

ezgif-4-3adfd9cfb5e5.gif

Screenshot 2018-12-29 at 16.22.23.jpg

ezgif-4-72288f63127c.gif

Code:
# ________                .__              __________                 _____.__
# \______ \   ____   _____|__|______   ____\______   \_______   _____/ ____\__|__  ___
#  |    |  \_/ __ \ /  ___/  \_  __ \_/ __ \|     ___/\_  __ \_/ __ \   __\|  \  \/  /
#  |    `   \  ___/ \___ \|  ||  | \/\  ___/|    |     |  | \/\  ___/|  |  |  |>    <\
# /_______  /\___  >____  >__||__|    \___  >____|     |__|    \___  >__|  |__/__/\_ \
#         \/     \/     \/                \/                       \/               \/
#
#   ______   ______   ______   ______   ______   ______   ______   ______   ______   ______
# /_____/  /_____/  /_____/  /_____/  /_____/  /_____/  /_____/  /_____/  /_____/  /_____/

# BOOLEAN / Whether or not any aspects of this plugin are enabled
settings.enabled: true

# BOOLEAN / Whether or not the default prefix [/] is enabled
settings.default-prefix.enabled: true

# STRING LIST / A list of custom prefixes for commands
settings.prefixes:
  - "!"
  - "%"

lang:
  # STRING LIST / Messages to be displayed when someone tries to use the default prefix [/] while it's disabled
  # VARIABLES: {PREFIXES} - A list of prefixes that are available
  default.disabled:
  - "&cYou cannot use the default command prefix."
  - "&cAvailable prefixes: {PREFIXES}"

# STRING
perm:
  all: desireprefix.*
  reload: desireprefix.reload
  save: desireprefix.save

  enable: desireprefix.enabled
  default-prefix.enable: desireprefix.defaultp.enable

  prefix:
    add: desireprefix.prefix.add
    remove: desireprefix.prefix.remove

Download: https://majored.me/projects/desireprefix/latest/DesirePrefix.jar

Discord: https://discordapp.com/invite/gzaCZQe

Rights: By using this plugin, you hereby accept any and all terms set out by our licence. This licence prohibits the decompilation of this plugin, either for redistribution or reverse engineering. You must not resell, or redistribute this plugin without prior sought permission or consent from me, or claim it to be of your own work.
 

Attachments

  • ezgif-4-3adfd9cfb5e5.gif
    ezgif-4-3adfd9cfb5e5.gif
    1.9 MB · Views: 133
  • ezgif-4-63e06c8d1b0d.gif
    ezgif-4-63e06c8d1b0d.gif
    2.4 MB · Views: 128
  • ezgif-4-72288f63127c.gif
    ezgif-4-72288f63127c.gif
    1.1 MB · Views: 127
  • ezgif-4-e21997454d5f.gif
    ezgif-4-e21997454d5f.gif
    1.8 MB · Views: 136
  • Screenshot 2018-12-29 at 16.50.43.jpg
    Screenshot 2018-12-29 at 16.50.43.jpg
    25.8 KB · Views: 116
  • Screenshot 2018-12-29 at 16.50.25.jpg
    Screenshot 2018-12-29 at 16.50.25.jpg
    76 KB · Views: 116
  • Screenshot 2018-12-29 at 16.22.23.jpg
    Screenshot 2018-12-29 at 16.22.23.jpg
    119.4 KB · Views: 109
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Harry

Rustacean
Management
Feedback score
10
Posts
1,606
Reactions
876
Resources
0
* Reserved For Updates *

Planned:

* Customize all messages and permissions
* Prevent disabling the default permission
without any custom prefixes set
* Switching over to own SubCommand class

Suggest any features or code improvements below!​
 
Last edited:
Status
This thread has been locked.
Top