Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Change -> Added offline maintainer UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
EinfacheSache committed Jul 14, 2023
1 parent 908492c commit 08509d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void run() {
instance.sendMessage(player, localization.get("setup.required.second"));
}

if (Arrays.stream(instance.getCore().getMaintainerUUID()).noneMatch(uuid -> uuid.equals(player.getUniqueId()))) {
if (Arrays.stream(instance.getCore().getMaintainerUUID()).anyMatch(uuid -> uuid.equals(player.getUniqueId()))) {
instance.sendMessage(player, "§bHello " + player.getName() + " ;)");
instance.sendMessage(player, "§bThis server uses your NeoPlugin");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void onLogin(PlayerJoinEvent event){
instance.sendMessage(player, localization.get("setup.required.second"));
}

if(Arrays.stream(instance.getCore().getMaintainerUUID()).noneMatch(uuid -> uuid.equals(player.getUniqueId()))){
if(Arrays.stream(instance.getCore().getMaintainerUUID()).anyMatch(uuid -> uuid.equals(player.getUniqueId()))){
instance.sendMessage(player, "§bHello " + player.getName() + " ;)");
instance.sendMessage(player, "§bThis server uses your NeoPlugin");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void run() {
instance.sendMessage(player, localization.get("setup.required.second"));
}

if (Arrays.stream(instance.getCore().getMaintainerUUID()).noneMatch(uuid -> uuid.equals(player.getUniqueId()))) {
if (Arrays.stream(instance.getCore().getMaintainerUUID()).anyMatch(uuid -> uuid.equals(player.getUniqueId()))) {
instance.sendMessage(player, "§bHello " + player.getUsername() + " ;)");
instance.sendMessage(player, "§bThis server uses your NeoPlugin");
}
Expand Down

0 comments on commit 08509d6

Please sign in to comment.