Comments (2)
This also technically falls under #3 in terms of management imo, My major thought is changes to the SimpleCommandMap so we can register a command to return in the event if there is no command under that name.
This would likely either require reflection in order to replace the existing command map and then mess around with the Commands themselves in order to enforce our ownership over the Command instance, which is something we could do, however, this would cause issues with any plugin that holds a reference to the SimpleCommandMap implementation in Bukkit before we get around to registering ours, and to be honest, the amount of work that code that would be needed to handle that, makes me question if this is actually a suitable method at all.
alternative is to get Paper to add methods to the SimpleCommandMap that allows us to register a fallback in the event no command is found
from commands.
other idea: register to player preprocess, call getCommand() on the command map and determine ahead of time if the command is going to fail.
from commands.
Related Issues (20)
- Add a fabric implementation of the ACF HOT 2
- color codes with messages to command issuer HOT 1
- Creating Timings deprecated warnings - Paper planning to remove Timings functionality HOT 1
- Add support to Folia if it possible HOT 9
- Cannot compile as of April 1st HOT 1
- Brigadier - more issues HOT 1
- Using OfflinePlayer as a param causes my server to crash sometimes HOT 1
- trying to autocomplete first argument, then allow user to type "set" and then autocomplete again HOT 1
- Command Completions Item HOT 1
- Presence of Folia-compatible plugin seems to trip up the Bukkit command manager HOT 5
- NoSuchMethodError for threadedregions.scheduler.AsyncScheduler on 1.19.4 HOT 1
- No permission HOT 4
- Error on Server Shutdown HOT 1
- Execution failed for task ':compileJava'. HOT 7
- Is it possible to "dynamically" register a alias for a command? HOT 1
- Add @Async annotation for the commands/arguments HOT 8
- ACF breaking mcMMO HOT 14
- Plugin attempted to register my.plugin.package.acf.ACFBukkitListener@6588a59a while not enabled HOT 1
- Inner classes on Kotlin do not register HOT 3
- BukkitCommandManager readPlayerLocale wrong for 1.20.2 and above HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commands.