RuneHive-Game
Loading...
Searching...
No Matches
Command.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.mob.player.command;
2
3import com.runehive.game.world.entity.mob.player.Player;
4
5public abstract class Command {
6
7 private final String[] names;
8
9 public Command(String... names) {
10 this.names = names;
11 }
12
13 public abstract void execute(Player player, CommandParser parser);
14
15 public String[] getNames() {
16 return names;
17 }
18
19}
This class represents a character controlled by a player.
Definition Player.java:125
abstract void execute(Player player, CommandParser parser)