9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-30 20:29:18 +00:00

Add permission to disable info

This commit is contained in:
SamB440
2020-08-15 13:38:21 +01:00
parent ffb1efd2a3
commit dbd80f0d67

View File

@@ -37,6 +37,8 @@ public class RPGRegionsCommand extends BaseCommand {
@Default
public void onDefault(CommandSender sender) {
if (sender.hasPermission("rpgregions.noview") && !sender.isOp()) return;
sender.sendMessage(ChatColor.YELLOW + "Wiki > " + plugin.getDescription().getWebsite());
sender.sendMessage(ChatColor.YELLOW + "Bugs > https://gitlab.com/SamB440/rpgregions-2");
sender.sendMessage(ChatColor.YELLOW + "Discord > https://discord.gg/fh62mxU");