-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed plugin command not showing plugins
- Loading branch information
1 parent
d4d12ae
commit 4902169
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
headlessmc-api/src/main/java/me/earth/headlessmc/api/command/CopyContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package me.earth.headlessmc.api.command; | ||
|
||
import me.earth.headlessmc.api.HeadlessMc; | ||
|
||
public class CopyContext extends CommandContextImpl { | ||
public CopyContext(HeadlessMc ctx, boolean baseContext) { | ||
super(ctx); | ||
CommandContext before = baseContext ? ctx.getCommandLine().getBaseContext() : ctx.getCommandLine().getCommandContext(); | ||
for (Command command : before) { | ||
add(command); | ||
} | ||
} | ||
|
||
// TODO: actually we should always expose this | ||
@Override | ||
public void add(Command command) { | ||
super.add(command); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
headlessmc-launcher/src/main/java/me/earth/headlessmc/launcher/plugin/PluginManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters