mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-09-30 08:07:35 +02:00
Change permissions prefix to "holographicdisplays."
This commit is contained in:
parent
71bf06a8b5
commit
f9a6163363
@ -7,6 +7,7 @@ package me.filoghost.holographicdisplays;
|
|||||||
|
|
||||||
public class Permissions {
|
public class Permissions {
|
||||||
|
|
||||||
public static final String COMMAND_BASE = "holograms.";
|
public static final String COMMAND_BASE = "holographicdisplays.command.";
|
||||||
|
public static final String UPDATE_NOTIFICATION = "holographicdisplays.update";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ public class UpdateNotificationListener implements Listener {
|
|||||||
if (Configuration.updateNotification && newVersion != null) {
|
if (Configuration.updateNotification && newVersion != null) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
|
||||||
if (player.hasPermission(Permissions.COMMAND_BASE + "update")) {
|
if (player.hasPermission(Permissions.UPDATE_NOTIFICATION)) {
|
||||||
player.sendMessage(Colors.PRIMARY_SHADOW + "[HolographicDisplays] "
|
player.sendMessage(Colors.PRIMARY_SHADOW + "[HolographicDisplays] "
|
||||||
+ Colors.PRIMARY + "Found an update: " + newVersion + ". Download:");
|
+ Colors.PRIMARY + "Found an update: " + newVersion + ". Download:");
|
||||||
player.sendMessage(Colors.PRIMARY_SHADOW + ">> "
|
player.sendMessage(Colors.PRIMARY_SHADOW + ">> "
|
||||||
|
Loading…
Reference in New Issue
Block a user