mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-19 07:38:33 +01:00
Deprecate getQuester(String) method for external use
This commit is contained in:
parent
ebbbcb9cd1
commit
39826eb0b8
@ -1335,6 +1335,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
/**
|
||||
* Get online Quester from player name
|
||||
*
|
||||
* @deprecated Use {@link #getQuester(UUID)}
|
||||
* @param name Player name
|
||||
* @return Quester, or null if offline
|
||||
*/
|
||||
|
@ -579,6 +579,7 @@ public class CmdExecutor implements CommandExecutor {
|
||||
return true;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private void questsStats(final CommandSender cs, String[] args) {
|
||||
Quester quester;
|
||||
if (args != null) {
|
||||
@ -1271,6 +1272,7 @@ public class CmdExecutor implements CommandExecutor {
|
||||
|
||||
private void adminReset(final CommandSender cs, String[] args) {
|
||||
if (cs.hasPermission("quests.admin.*") || cs.hasPermission("quests.admin.reset")) {
|
||||
@SuppressWarnings("deprecation")
|
||||
Quester quester = plugin.getQuester(args[1]);
|
||||
if (quester == null) {
|
||||
cs.sendMessage(ChatColor.YELLOW + Lang.get("playerNotFound"));
|
||||
@ -1324,6 +1326,7 @@ public class CmdExecutor implements CommandExecutor {
|
||||
|
||||
private void adminRemove(final CommandSender cs, String[] args) {
|
||||
if (cs.hasPermission("quests.admin.*") && cs.hasPermission("quests.admin.remove")) {
|
||||
@SuppressWarnings("deprecation")
|
||||
Quester quester = plugin.getQuester(args[1]);
|
||||
if (quester == null) {
|
||||
cs.sendMessage(ChatColor.YELLOW + Lang.get("playerNotFound"));
|
||||
|
Loading…
Reference in New Issue
Block a user