usage for joinqueue command
This commit is contained in:
@@ -5,7 +5,6 @@ import net.md_5.bungee.api.connection.ProxiedPlayer;
|
|||||||
import net.md_5.bungee.api.plugin.Command;
|
import net.md_5.bungee.api.plugin.Command;
|
||||||
import us.ajg0702.queue.Main;
|
import us.ajg0702.queue.Main;
|
||||||
import us.ajg0702.queue.Manager;
|
import us.ajg0702.queue.Manager;
|
||||||
import us.ajg0702.queue.Server;
|
|
||||||
import us.ajg0702.queue.utils.BungeeMessages;
|
import us.ajg0702.queue.utils.BungeeMessages;
|
||||||
|
|
||||||
public class MoveCommand extends Command {
|
public class MoveCommand extends Command {
|
||||||
@@ -27,11 +26,12 @@ public class MoveCommand extends Command {
|
|||||||
if(args.length > 0) {
|
if(args.length > 0) {
|
||||||
Manager.getInstance().addToQueue(p, args[0]);
|
Manager.getInstance().addToQueue(p, args[0]);
|
||||||
} else if(args.length == 0) {
|
} else if(args.length == 0) {
|
||||||
Server server = Manager.getInstance().findPlayerInQueue((ProxiedPlayer) sender);
|
sender.sendMessage(msgs.getBC("commands.joinqueue.usage"));
|
||||||
|
/*Server server = Manager.getInstance().findPlayerInQueue((ProxiedPlayer) sender);
|
||||||
if(server != null) {
|
if(server != null) {
|
||||||
server.getQueue().remove(p);
|
server.getQueue().remove(p);
|
||||||
p.sendMessage(msgs.getBC("commands.leave-queue"));
|
p.sendMessage(msgs.getBC("commands.leave-queue"));
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ public class BungeeMessages {
|
|||||||
|
|
||||||
d.put("commands.leave-queue", "&aYou left the queue!");
|
d.put("commands.leave-queue", "&aYou left the queue!");
|
||||||
d.put("commands.reload", "&aConfig and messages reloaded successfully!");
|
d.put("commands.reload", "&aConfig and messages reloaded successfully!");
|
||||||
|
d.put("commands.joinqueue.usage", "&cUsage: /joinqueue <server>");
|
||||||
|
|
||||||
d.put("noperm", "&cYou do not have permission to do this!");
|
d.put("noperm", "&cYou do not have permission to do this!");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user