ComFile - Command Files
1.3Create Custom Commands with simple Configurable Files! Send Messages/Run Commands from an easy File!
Create your own Custom Command with a simple .yml file.
Upon first loading, this plugin creates a folder called "commands" inside the plugins/ComFile/ folder. To create your first command, create a file inside the commands folder with the command name as the name of the file, with a .yml extension, like welcome.yml to create a /welcome command.
Then open your file and add one or more of the configuration options listed below, also listed inside the plugin's main config. These options will translate Bukkit Color Codes and use two placeholders %player% and %target%.
%player% will not work if the command is sent from the console.
%target% will not work if no player name is entered after the command.
# Aliases:
# - "list"
# - "aliases"
# - "here"
#
# Permission: "add.perm.to.use.command.here" (If no perm is added anyone can use the command)
#
# Cooldown: in seconds, no "quotes" needed
#
# playerMessage:
# - "Send as many"
# - "lines as you want"
#
# targetMessage:
# - "Requires a player name"
# - "be typed after the command in game"
#
# asConsole:
# - "issue other commands as the console"
# - "use the placeholders to add players as"
# - "variables in these commands"
#
# asPlayer:
# - "run commands as the player"
# - "this will use the players permissions"
# - "make aliases or run multiple commands at once"
#
# asTarget:
# - "run a command as the target player"
# - "requires a player name be typed after the command in game"
# - "great for trolling or forcing players to spawn/warps"
#
# permMessage:
# - "Send this to players who have a permission"
# - "Useful for groups or selecting all players"
# Permission: "set.that.perm.here"
#
# allMessage:
# - "Send this to all online players"
# - "Make your own broadcast messages"
Once you've added all the options to your commands, Restart the server or type "/comfile load" (requires "comfile.admin" perm) followed by the command name (works in console without the '/'). Then, your commands are ready for use!
Command Examples
warn.yml
Permission: "staff.warn"
playerMessage:
- "&4You have warned %target%"
targetMessage:
- "&4[Staff] You have been warned"
welcome.yml
playerMessage:
- "&AWelcome to the server &C%player%"
- "&AUse the compass to Navigate Servers"
Cooldown: 3
helpnew
Permission: "helper.helpnew"
Cooldown: 30
asTarget:
- "welcome"
playerMessage:
- "&3You helped &C%target% &3and ran the /welcome command for them"
asConsole:
- "staffchat &D%player% ran the /helpnew command on %target%
This plugin is free but why not donate a buck or two? It will help me add new features and keep me from eating garbage... maybe.
Similar projects
Config →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta