From 59f8d430b1442fae42c82c020985b8dbdd6b7b86 Mon Sep 17 00:00:00 2001 From: Daniel V Date: Wed, 12 Jun 2024 10:49:24 -0400 Subject: [PATCH] Accepted our first groundbreaking PR, because unlike Vault, we actually believe in progress. See what happens when you open the door? (https://github.com/MilkBowl/Vault/pull/929) --- src/net/milkbowl/vault/Vault.java | 55 +++++++------------------------ 1 file changed, 11 insertions(+), 44 deletions(-) diff --git a/src/net/milkbowl/vault/Vault.java b/src/net/milkbowl/vault/Vault.java index aebbe8f1..87b43a91 100644 --- a/src/net/milkbowl/vault/Vault.java +++ b/src/net/milkbowl/vault/Vault.java @@ -15,46 +15,9 @@ */ package net.milkbowl.vault; -import java.io.BufferedReader; -import java.io.InputStreamReader; -import java.net.URL; -import java.net.URLConnection; -import java.util.Collection; -import java.util.concurrent.Callable; -import java.util.logging.Logger; - import net.milkbowl.vault.chat.Chat; -import net.milkbowl.vault.chat.plugins.Chat_DroxPerms; -import net.milkbowl.vault.chat.plugins.Chat_GroupManager; -import net.milkbowl.vault.chat.plugins.Chat_OverPermissions; -import net.milkbowl.vault.chat.plugins.Chat_Permissions3; -import net.milkbowl.vault.chat.plugins.Chat_PermissionsEx; -import net.milkbowl.vault.chat.plugins.Chat_Privileges; -import net.milkbowl.vault.chat.plugins.Chat_bPermissions; -import net.milkbowl.vault.chat.plugins.Chat_bPermissions2; -import net.milkbowl.vault.chat.plugins.Chat_iChat; -import net.milkbowl.vault.chat.plugins.Chat_mChat; -import net.milkbowl.vault.chat.plugins.Chat_mChatSuite; -import net.milkbowl.vault.chat.plugins.Chat_rscPermissions; import net.milkbowl.vault.economy.Economy; import net.milkbowl.vault.permission.Permission; -import net.milkbowl.vault.permission.plugins.Permission_DroxPerms; -import net.milkbowl.vault.permission.plugins.Permission_GroupManager; -import net.milkbowl.vault.permission.plugins.Permission_OverPermissions; -import net.milkbowl.vault.permission.plugins.Permission_Permissions3; -import net.milkbowl.vault.permission.plugins.Permission_PermissionsBukkit; -import net.milkbowl.vault.permission.plugins.Permission_PermissionsEx; -import net.milkbowl.vault.permission.plugins.Permission_Privileges; -import net.milkbowl.vault.permission.plugins.Permission_SimplyPerms; -import net.milkbowl.vault.permission.plugins.Permission_Starburst; -import net.milkbowl.vault.permission.plugins.Permission_SuperPerms; -import net.milkbowl.vault.permission.plugins.Permission_Xperms; -import net.milkbowl.vault.permission.plugins.Permission_bPermissions; -import net.milkbowl.vault.permission.plugins.Permission_bPermissions2; -import net.milkbowl.vault.permission.plugins.Permission_TotalPermissions; -import net.milkbowl.vault.permission.plugins.Permission_rscPermissions; -import net.milkbowl.vault.permission.plugins.Permission_KPerms; - import org.bstats.bukkit.Metrics; import org.bstats.charts.SimplePie; import org.bukkit.Bukkit; @@ -67,16 +30,20 @@ import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.permissions.PermissionDefault; -import org.bukkit.plugin.Plugin; import org.bukkit.plugin.RegisteredServiceProvider; -import org.bukkit.plugin.ServicePriority; import org.bukkit.plugin.ServicesManager; import org.bukkit.plugin.java.JavaPlugin; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.JSONValue; -import net.milkbowl.vault.chat.plugins.Chat_TotalPermissions; +import java.io.BufferedReader; +import java.io.InputStreamReader; +import java.net.URL; +import java.net.URLConnection; +import java.util.Collection; +import java.util.concurrent.Callable; +import java.util.logging.Logger; public class Vault extends JavaPlugin { @@ -289,10 +256,10 @@ private void infoCommand(CommandSender sender) { chat = rspc.getProvider(); } // Send user some info! - sender.sendMessage(String.format("[%s] VaultUnlocked v%s Information", getDescription().getName(), getDescription().getVersion())); - sender.sendMessage(String.format("[%s] Economy: %s [%s]", getDescription().getName(), econ == null ? "None" : econ.getName(), registeredEcons)); - sender.sendMessage(String.format("[%s] Permission: %s [%s]", getDescription().getName(), perm == null ? "None" : perm.getName(), registeredPerms)); - sender.sendMessage(String.format("[%s] Chat: %s [%s]", getDescription().getName(), chat == null ? "None" : chat.getName(), registeredChats)); + sender.sendMessage(String.format("[%s] Vault v%s Information", getDescription().getName(), getDescription().getVersion())); + sender.sendMessage(String.format("[%s] Economy: %s%s", getDescription().getName(), econ == null ? "None" : econ.getName(), registeredEcons == null ? "" : " [" + registeredEcons + "]")); + sender.sendMessage(String.format("[%s] Permission: %s%s", getDescription().getName(), perm == null ? "None" : perm.getName(), registeredPerms == null ? "" : " [" + registeredPerms + "]")); + sender.sendMessage(String.format("[%s] Chat: %s%s", getDescription().getName(), chat == null ? "None" : chat.getName(), registeredChats == null ? "" : " [" + registeredChats + "]")); } /**