Skip to content

Commit

Permalink
[remove] こっちかい
Browse files Browse the repository at this point in the history
  • Loading branch information
howard12721 committed Apr 9, 2023
1 parent f664061 commit 7917171
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,10 @@ public void execute(CommandSender sender, String[] args) {
String input = args[1];
ServerSection section = plugin.getSectionManager().getByName(input);
if (section != null) {
if (args.length == 3) {
ProxiedPlayer player = plugin.getProxy().getPlayer(args[2]);
if (player != null) {
ConnectionIntent.simple(plugin, player, section);
} else {
sender.sendMessage(new ComponentBuilder("There is no player with that name connected to this proxy").color(ChatColor.RED).create());
}
if (sender instanceof ProxiedPlayer) {
ConnectionIntent.simple(plugin, (ProxiedPlayer) sender, section);
} else {
if (sender instanceof ProxiedPlayer) {
ConnectionIntent.simple(plugin, (ProxiedPlayer) sender, section);
} else {
sender.sendMessage(new ComponentBuilder("This command variant can only be executed by a player").color(ChatColor.RED).create());
}
sender.sendMessage(new ComponentBuilder("This command variant can only be executed by a player").color(ChatColor.RED).create());
}
} else {
MessageUtils.send(sender, plugin.getSettings().getMessagesProps().getUnknownSectionMessage());
Expand Down

0 comments on commit 7917171

Please sign in to comment.