mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 09:59:42 -05:00
Override toString() method in Command
Overriding the toString() method provides more human-readable feedback when a problem occurs, including the version of the plugin if applicable. By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
1 parent
b8e592c987
commit
c2bebbcdbb
2 files changed
+13
No files matched your search
@@ -350,4 +350,9 @@ public abstract class Command {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getName() + '(' + name + ')';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user