@@ -315,6 +315,26 @@ public function execute(CommandSender $sender, $commandLabel, array $args) {
315315 $ this ->sendMessage ($ sender , "Usage: /skyblock accept <sender name> " );
316316 }
317317 break ;
318+ case "members " :
319+ $ config = $ this ->plugin ->getSkyBlockManager ()->getPlayerConfig ($ sender );
320+ if (empty ($ config ->get ("island " ))) {
321+ $ this ->sendMessage ($ sender , "You must be in a island to use this command! " );
322+ }
323+ else {
324+ $ island = $ this ->plugin ->getIslandManager ()->getOnlineIsland ($ config ->get ("island " ));
325+ if ($ island instanceof Island) {
326+ $ this ->sendMessage ($ sender , "____| {$ island ->getOwnerName ()}'s Members |____ " );
327+ $ i = 1 ;
328+ foreach ($ island ->getAllMembers () as $ member ) {
329+ $ this ->sendMessage ($ sender , "{$ i }. {$ member }" );
330+ $ i ++;
331+ }
332+ }
333+ else {
334+ $ this ->sendMessage ($ sender , "You must be in a island to use this command!! " );
335+ }
336+ }
337+ break ;
318338 case "disband " :
319339 $ config = $ this ->plugin ->getSkyBlockManager ()->getPlayerConfig ($ sender );
320340 if (empty ($ config ->get ("island " ))) {
@@ -500,13 +520,14 @@ public function execute(CommandSender $sender, $commandLabel, array $args) {
500520 break ;
501521 case "info " :
502522 $ commands = [
503- "info " => "Shows skyblock command info " ,
523+ "info " => "Show skyblock command info " ,
504524 "create " => "Create a new island " ,
505525 "join " => "Teleport you to your island " ,
506526 "expel " => "Kick someone from your island " ,
507527 "lock " => "Lock/unlock your island, then nobody/everybody will be able to join " ,
508528 "sethome " => "Set your island home " ,
509529 "home " => "Teleport you to your island home " ,
530+ "members " => "Show all members of your island " ,
510531 "tp <ownerName> " => "Teleport you to a island that isn't yours " ,
511532 "invite " => "Invite a player to be member of your island " ,
512533 "accept/reject <sender name> " => "Accept/reject an invitation " ,
0 commit comments