Comments (2)
I found a solution, but it seems to me that this is some kind of dirty hack
builder.contextualBind(CustomSender::class.java) { sender, _ -> Result.ok<CustomSender, Any?>(CustomSender(sender)) }
Your solution is correct, it works similarly to LiteSender which is crossplatform too
from litecommands.
I found a solution, but it seems to me that this is some kind of dirty hack
builder.contextualBind(CustomSender::class.java) { sender, _ -> Result.ok<CustomSender, Any?>(CustomSender(sender)) }
from litecommands.
Related Issues (20)
- MultipleArgumentResolver with HOT 2
- Deployment failed
- Drop java 8 support (?) HOT 2
- List Argument Suggestions only provide suggestion for first Argument HOT 2
- OptionalArg don't support collections types HOT 4
- java.lang.IllegalArgumentException: Max cannot be less than min [Programmatic] HOT 1
- @Delimiter(",") for collections
- Add pattern for subcommands
- Multiple OptionalArg
- Add rawinput view etc to make rawinput more flexible HOT 1
- Improve BungeeCord support HOT 2
- My temporary absence (Rollczi) HOT 4
- Bug. LiteCommands still suggests a subcommand when a player doesn't have permissions for it.
- Add @Cooldown feature
- Commandblock Support HOT 5
- Add command/subcommands rate-limit HOT 4
- Check all arguments types on startup
- Allow the ability to use aliases without requiring a name in @Execute
- Can we use @OptionalArg and @Join in one argument? HOT 1
- Description meta not added to children commands? HOT 1
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 litecommands.