Skip to content

Commit

Permalink
Support Geyser Change to GeyserCommand
Browse files Browse the repository at this point in the history
Not backwards compatible
  • Loading branch information
bundabrg committed Jan 22, 2021
1 parent ceb2b68 commit 6ad7516
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MIT License
*
* Copyright (c) 2020 GeyserReversion Developers
* Copyright (c) 2021 GeyserReversion Developers
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -29,6 +29,9 @@
import org.geysermc.connector.command.CommandSender;
import org.geysermc.connector.command.GeyserCommand;
import org.geysermc.connector.common.ChatColor;
import org.geysermc.connector.network.session.GeyserSession;

import javax.annotation.Nullable;

public class EducationCommand extends GeyserCommand {

Expand All @@ -50,7 +53,7 @@ private void showHelp(CommandSender sender) {
}

@Override
public void execute(CommandSender sender, String[] args) {
public void execute(@Nullable GeyserSession geyserSession, CommandSender sender, String[] args) {
if (!sender.isConsole()) {
return;
}
Expand Down Expand Up @@ -82,4 +85,5 @@ public void execute(CommandSender sender, String[] args) {
showHelp(sender);
}
}

}

0 comments on commit 6ad7516

Please sign in to comment.