Skip to content

Commit

Permalink
feat: spigot -> paper
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRONiN committed Aug 2, 2022
1 parent 2f27516 commit 474090a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@

<repositories>
<repository>
<id>spigotmc-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>sonatype</id>
Expand Down Expand Up @@ -97,9 +97,9 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.19.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.google.gson.Gson;
import in.arcadelabs.labaide.LabAide;
import in.arcadelabs.labaide.updatechecker.downloads.DownloadManager;
import net.kyori.adventure.text.minimessage.MiniMessage;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
Expand Down Expand Up @@ -225,9 +226,9 @@ private void checkForUpdate() {
public void run() {
processMessage();
for (Player player : Bukkit.getOnlinePlayers()) {
if (Bukkit.getOnlinePlayers().size() > 0 && player.hasPermission("greetings.update")) {
if (Bukkit.getOnlinePlayers().size() > 0 && player.hasPermission(getNotificationPermission())) {
for (final String message : instance.getMessage()) {
LabAide.getMessenger().sendMessage(player, message);
player.sendMessage(MiniMessage.miniMessage().deserialize(message));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

package in.arcadelabs.labaide.updatechecker;

import in.arcadelabs.labaide.LabAide;
import net.kyori.adventure.text.minimessage.MiniMessage;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
Expand All @@ -39,7 +39,7 @@ public void playerJoinNotification(PlayerJoinEvent event) {
(instance.getNotificationPermission() != null &&
player.hasPermission(instance.getNotificationPermission()))) {
for (final String message : instance.getMessage()) {
LabAide.getMessenger().sendMessage(player, message);
player.sendMessage(MiniMessage.miniMessage().deserialize(message));
}
}
}
Expand Down

0 comments on commit 474090a

Please sign in to comment.