13
0
geforkt von Mirrors/Paper

45 Commits

Autor SHA1 Nachricht Datum
Bukkit/Spigot
244635242e The server config can now specify aliases to multiple (or none) commands, for example "debug: [version, plugin]" to run both version and plugin, or "plugins: []" to disable the plugins command
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-06-22 19:07:07 +01:00
Bukkit/Spigot
b02e6095bd Server administrators can now specify custom aliases in bukkit.yml which override any aliases set by plugins.
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-06-17 04:07:17 +01:00
Bukkit/Spigot
089c229c1d Fixed fallbackPrefix not being lowercased, which would break prefixes for plugins with an uppercase char in the name
By: stevenh <steven.hartland@multiplay.co.uk>
2011-06-12 16:35:26 +01:00
Bukkit/Spigot
c5408f1030 Generic cleanup
By: Erik Broes <erikbroes@grum.nl>
2011-06-12 01:18:17 +02:00
Bukkit/Spigot
e96e0e657f Fixed no command found being sent to the command sender for command handlers which return failure (false)
By: stevenh <steven.hartland@multiplay.co.uk>
2011-05-23 23:59:47 +01:00
Bukkit/Spigot
8eddaae2f2 Reworked command registration so that aliases are secondary to the primary command label requested
Updated docs to reflect what the code really does
This adds a few new methods to Command including:-
* A full constructor that takes descriptio, usageMassage and aliases for convenience
* getLabel() which returns the active label for a command, which is derived from the Command name or subsiquent call to setLabel(..)
* A number of registration functions for use in the CommandMap implementer
Also of note is Command.getAliases() no returns the "active" aliases

By: stevenh <steven.hartland@multiplay.co.uk>
2011-05-22 20:42:26 +01:00
Bukkit/Spigot
a679c0c906 Fixed command aliases priorities.
Command aliases are now given lower weight than the "official" name of the command; this allows you to define aliases without worrying about them overriding someone else's command.

By: Celtic Minstrel <celtic.minstrel.ca@>
2011-03-30 17:36:39 -04:00
Bukkit/Spigot
940c9f9974 Made disabled plugins show up in red in the plugins list. Thanks Yetanotherx!
By: EvilSeph <evilseph@unaligned.org>
2011-05-15 20:07:53 -04:00
Bukkit/Spigot
855f4133b6 Whitespace + general cleanup
By: Erik Broes <erikbroes@grum.nl>
2011-05-14 23:22:54 +02:00
Bukkit/Spigot
865f44281e Fixed AIOOBE when entering a space into console and hitting enter.
By: EvilSeph <evilseph@unaligned.org>
2011-04-24 21:49:45 -04:00
Bukkit/Spigot
7e9974d53c All previous deprecated methods removed (OH GOD EVERYTHING BROKEN)
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-03-14 15:05:46 +00:00
Bukkit/Spigot
9bb9985c21 Corrected description of CommandSender.getServer()
By: stevenh <steven.hartland@multiplay.co.uk>
2011-03-12 17:55:55 +00:00
Bukkit/Spigot
2465a33543 Removed unneeded string constant concat
Note: editor removed spaces on otherwise empty lines

By: stevenh <steven.hartland@multiplay.co.uk>
2011-03-12 17:51:57 +00:00
Bukkit/Spigot
b191786a1b Compensate for sendMessage losing its 'unintended splitting on existing newlines'-feature
By: Erik Broes <erikbroes@grum.nl>
2011-03-12 17:01:56 +01:00
Bukkit/Spigot
bfad019c31 Don't throw commands if the plugin is disabled
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-03-07 16:41:50 +00:00
Bukkit/Spigot
6410e49ab9 Java 1.5 compat.
By: Erik Broes <erikbroes@ripe.net>
2011-03-02 15:23:15 +01:00
Bukkit/Spigot
2e97b270d4 command.set/getDescription replaces a now deprecated set/getTooltip + javadocs
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-28 11:42:09 +00:00
Bukkit/Spigot
5256cbb8a8 PluginCommand getExecutor + javadocs
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-28 10:35:58 +00:00
Bukkit/Spigot
9c2782bea7 Added JavaPlugin.getCommand
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-28 01:35:03 +00:00
Bukkit/Spigot
dbfb262c5d Case-insensitive commands
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-28 00:52:43 +00:00
Bukkit/Spigot
0a0e475f83 Tweaks to command system to allow setting executors via plugins (no more ambiguous onCommand in plugins)
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-28 00:30:59 +00:00
Bukkit/Spigot
6132abb1f5 Changed ConsoleCommandSender to use stripColor instead of hardcoded
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-23 11:44:12 +00:00
Bukkit/Spigot
858c8bee96 ConsoleCommandSender no longer has a default constructor, use ConsoleCommandSender(server). Added entity.getServer
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-23 11:33:03 +00:00
Bukkit/Spigot
023ff0a43d We need to set cmdSuccess accordingly.
By: EvilSeph <evilseph@unaligned.org>
2011-02-18 21:30:19 -05:00
Bukkit/Spigot
636c1ec83a Exception handling in commands
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-18 16:25:06 +00:00
Bukkit/Spigot
d3b62214a6 Fixed alias parsing for commands. object.toString().split(",") is NOT how you parse a YAML list!
By: sk89q <the.sk89q@gmail.com>
2011-02-16 21:45:15 -08:00
Bukkit/Spigot
2dee4ab20e Commands should not be case-sensitive.
By: EvilSeph <evilseph@unaligned.org>
2011-02-06 21:56:38 -05:00
Bukkit/Spigot
925ec8254e Moved the plugin list display out of the version command and into the plugins command.
Version should not display a list of plugins as a server running many
plugins will no longer be able to see the version output.

By: EvilSeph <evilseph@unaligned.org>
2011-02-05 04:30:18 -05:00
Bukkit/Spigot
477b359f13 Revert "fallback code for command lookup"
This reverts commit 74a549c74bcabdb094c5c46f919ed98288631352.

By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-02 09:20:16 +00:00
Bukkit/Spigot
1899891b6f fallback code for command lookup
By: tahg <tahgtahv@gmail.com>
2011-02-01 21:56:16 -08:00
Bukkit/Spigot
474817bf11 General cleanup (deprecated+whitespace)
By: Erik Broes <erikbroes@grum.nl>
2011-02-02 00:02:08 +01:00
Bukkit/Spigot
4f6c65d684 Strip colours for console output
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-01 18:26:31 +00:00
Bukkit/Spigot
d1bbdaf377 Don't delete the first char of the command passed
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-01 18:12:31 +00:00
Bukkit/Spigot
3085f140b3 Deprecated CommandSender.isPlayer (instanceof!) and added ConsoleCommandSender
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-02-01 16:45:29 +00:00
Bukkit/Spigot
6f4cf0388b Renamed IExecutor -> CommandExecutor and fixed SERVER_COMMAND doc
By: stevenh <steven.hartland@multiplay.co.uk>
2011-01-29 21:17:36 +00:00
Bukkit/Spigot
e56db60b83 Finalising merge with head
By: stevenh <steven.hartland@multiplay.co.uk>
2011-01-29 17:28:31 +00:00
Bukkit/Spigot
c736e00b8c merge with head
By: stevenh <steven.hartland@multiplay.co.uk>
2011-01-29 17:18:32 +00:00
Bukkit/Spigot
df05c36540 Refactored event calling so its front loading avoiding the lookup for each event call.
This now uses an annoymous class implementing IExecutor that facilitates direct event method handler calling

Changed commands from being executed exclusively by a player to by a CommandSender to facilitate external command callers such as rcon

Fixed CustomEventListener

Merged in additional events

Added getFullName to PluginDescriptionFile which returns the combination of Name and Version

There's also a few bits of reformatting as it seems someones been editing with either tabs or dos eol :(

By: stevenh <steven.hartland@multiplay.co.uk>
2011-01-29 16:23:56 +00:00
Bukkit/Spigot
7d4be15159 Fixed only being able to use /reload once
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-01-28 14:24:54 +00:00
Bukkit/Spigot
14c7da2f6e clearPlugins() and clearCommands() for PluginManager and CommandMap respectively
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-01-28 14:18:24 +00:00
Bukkit/Spigot
74cf5f3f85 Fully implemented /version
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-01-20 05:46:23 +00:00
Bukkit/Spigot
396f22f816 Added /version and /reload commands
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-01-20 03:53:27 +00:00
Bukkit/Spigot
f0ab429e01 Fixed empty check in PluginCommand
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-01-20 03:08:15 +00:00
Bukkit/Spigot
2c532f4d88 Fixed minor bug with alias registration and removed debug output
By: VictorD <victor.danell@gmail.com>
2011-01-18 01:54:48 +01:00
Bukkit/Spigot
ab6f5d4bc2 Updated commands to have optional aliases, and to fallback to /pluginName:cmdName on name conflict.
By: VictorD <victor.danell@gmail.com>
2011-01-18 01:12:50 +01:00