Skip to content

Commit

Permalink
Update StatsCommand.java
Browse files Browse the repository at this point in the history
  • Loading branch information
7man7LMYT committed Jan 23, 2021
1 parent b0b7eaa commit 5af2e50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/me/stats/CustomStats/StatsCommand.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package me.stats.CustomStats;

import com.google.gson.FieldAttributes;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
Expand All @@ -17,8 +18,8 @@ public StatsCommand(CustomStats customStats) {

@Override
public boolean onCommand(CommandSender sender, Command cmd, String alias, String[] args) {
if(command.getName().equalsIgnoreCase("stats")) {

if(command.getName().equalsIgnoreCase("stats")) {
player.sendMessage( "If you see this it worked!" );
} else {
sender.sendMessage("This command does not work in console ;-;");
Expand Down

0 comments on commit 5af2e50

Please sign in to comment.