Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.serhat.test.commands;
- import com.google.inject.Inject;
- import me.serhat.test.GuiceTest;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandExecutor;
- import org.bukkit.command.CommandSender;
- public class GuiceTestCommand implements CommandExecutor {
- @Inject
- private GuiceTest plugin;
- @Inject
- public GuiceTestCommand( GuiceTest plugin ) {
- this.plugin = plugin;
- }
- @Override
- public boolean onCommand( CommandSender sender, Command command, String label, String[] args ) {
- sender.sendMessage( "worked well, mate: " + this.plugin.getTestNumber() );
- return true;
- }
- }
Add Comment
Please, Sign In to add comment