mirror of
https://github.com/Anime-Game-Servers/AGSLunarCore.git
synced 2024-11-27 06:10:25 +00:00
add a command to refill skill points in open world (not tested)
This commit is contained in:
parent
0789772464
commit
cc9a261323
@ -77,4 +77,5 @@ Server commands can be run in the server console or in-game. There is a dummy us
|
||||
/spawn [monster/prop id] x[amount] s[stage id]. Spawns a monster or prop near the targeted player.
|
||||
/unstuck @[player id]. Unstucks an offline player if theyre in a scene that doesnt load.
|
||||
/worldlevel [world level]. Sets the targeted player's equilibrium level.
|
||||
/refill. Refills your skill points in open world.
|
||||
```
|
||||
|
@ -0,0 +1,21 @@
|
||||
package emu.lunarcore.command.commands;
|
||||
|
||||
import emu.lunarcore.LunarCore;
|
||||
import emu.lunarcore.GameConstants;
|
||||
import emu.lunarcore.command.Command;
|
||||
import emu.lunarcore.command.CommandArgs;
|
||||
import emu.lunarcore.command.CommandHandler;
|
||||
import emu.lunarcore.game.player.Player;
|
||||
import emu.lunarcore.game.player.lineup.PlayerLineup;
|
||||
|
||||
@Command(label = "refill", aliases = {"rf"}, permission = "player.refill", desc = "/refill - refill your skill points in open world.")
|
||||
public class RefillMPCommand implements CommandHandler {
|
||||
|
||||
@Override
|
||||
public void execute(Player sender, CommandArgs args) {
|
||||
PlayerLineup lineup = sender.getCurrentLineup();
|
||||
lineup.addMp(GameConstants.MAX_MP);
|
||||
this.sendMessage(sender, "Successfully refilled skill points.");
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user