generated from Slimefun/Addon-Template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from JustAHuman-xD/rewrite/custom-mobs
[Rewrite] Custom Mobs
- Loading branch information
Showing
18 changed files
with
542 additions
and
302 deletions.
There are no files selected for viewing
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
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
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
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
28 changes: 28 additions & 0 deletions
28
src/main/java/me/gallowsdove/foxymachines/commands/ListallCommand.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,28 @@ | ||
package me.gallowsdove.foxymachines.commands; | ||
|
||
import io.github.mooy1.infinitylib.commands.SubCommand; | ||
import me.gallowsdove.foxymachines.abstracts.CustomMob; | ||
import org.bukkit.ChatColor; | ||
import org.bukkit.command.CommandSender; | ||
|
||
import javax.annotation.Nonnull; | ||
import java.util.List; | ||
|
||
public class ListallCommand extends SubCommand { | ||
public ListallCommand() { | ||
super("listall", "Lists all Custom Mobs from FoxyMachines", "foxymachines.admin"); | ||
} | ||
|
||
@Override | ||
protected void execute(@Nonnull CommandSender sender, @Nonnull String[] args) { | ||
if (args.length != 0) { | ||
sender.sendMessage(ChatColor.LIGHT_PURPLE + "Usage: /foxy listall"); | ||
return; | ||
} | ||
|
||
CustomMob.debug(); | ||
} | ||
|
||
@Override | ||
protected void complete(@Nonnull CommandSender commandSender, @Nonnull String[] strings, @Nonnull List<String> list) { } | ||
} |
Oops, something went wrong.