mirror of
https://github.com/YouHaveTrouble/CommandWhitelist.git
synced 2026-05-12 06:26:57 +00:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b31e7c76c | |||
| 1ea3f3f550 | |||
| 00f7d292fa | |||
| 653cd0e242 | |||
| 6b1763a260 | |||
| cd3ee4b214 | |||
| ea54ae3175 | |||
| c36ac056d5 | |||
| 7186c4de6c | |||
| dfa254f263 | |||
| e80629d708 | |||
| f41bfa7cd1 | |||
| 5af0cdef84 | |||
| e232953f11 | |||
| e8b284db69 | |||
| ed1024c9e7 | |||
| 153ad5f983 | |||
| 9e5b5b5fc7 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# These are supported funding model platforms
|
# These are supported funding model platforms
|
||||||
|
|
||||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
github: YouHaveTrouble
|
||||||
patreon: # Replace with a single Patreon username
|
patreon: # Replace with a single Patreon username
|
||||||
open_collective: # Replace with a single Open Collective username
|
open_collective: # Replace with a single Open Collective username
|
||||||
ko_fi: YouHaveTrouble
|
ko_fi: YouHaveTrouble
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>eu.endermite.commandwhitelist</groupId>
|
<groupId>eu.endermite.commandwhitelist</groupId>
|
||||||
<artifactId>CommandWhitelist</artifactId>
|
<artifactId>CommandWhitelist</artifactId>
|
||||||
<version>2.5.1</version>
|
<version>2.8.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>Bukkit</artifactId>
|
<artifactId>Bukkit</artifactId>
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.comphenix.protocol</groupId>
|
<groupId>com.comphenix.protocol</groupId>
|
||||||
<artifactId>ProtocolLib</artifactId>
|
<artifactId>ProtocolLib</artifactId>
|
||||||
<version>5.0.0-SNAPSHOT</version>
|
<version>5.0.0</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
+2
-1
@@ -21,6 +21,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
public class CommandWhitelistBukkit extends JavaPlugin {
|
public class CommandWhitelistBukkit extends JavaPlugin {
|
||||||
|
|
||||||
@@ -78,7 +79,7 @@ public class CommandWhitelistBukkit extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void reloadPluginConfig(CommandSender sender) {
|
public void reloadPluginConfig(CommandSender sender) {
|
||||||
getServer().getScheduler().runTaskAsynchronously(this, () -> {
|
CompletableFuture.runAsync(() -> {
|
||||||
reloadPluginConfig();
|
reloadPluginConfig();
|
||||||
try {
|
try {
|
||||||
for (Player p : Bukkit.getOnlinePlayers()) {
|
for (Player p : Bukkit.getOnlinePlayers()) {
|
||||||
|
|||||||
+8
-3
@@ -9,7 +9,6 @@ import org.bukkit.event.EventHandler;
|
|||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
|
|
||||||
|
|
||||||
public class AsyncTabCompleteBlockerListener implements Listener {
|
public class AsyncTabCompleteBlockerListener implements Listener {
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGHEST)
|
@EventHandler(priority = EventPriority.HIGHEST)
|
||||||
@@ -18,8 +17,14 @@ public class AsyncTabCompleteBlockerListener implements Listener {
|
|||||||
Player player = (Player) event.getSender();
|
Player player = (Player) event.getSender();
|
||||||
if (player.hasPermission(CWPermission.BYPASS.permission())) return;
|
if (player.hasPermission(CWPermission.BYPASS.permission())) return;
|
||||||
String buffer = event.getBuffer();
|
String buffer = event.getBuffer();
|
||||||
if (!buffer.endsWith(" ") && buffer.split(" ").length == 1) event.setCancelled(true);
|
if ((buffer.split(" ").length == 1 && !buffer.endsWith(" ")) || !buffer.startsWith("/")) {
|
||||||
if (event.getCompletions().isEmpty()) return;
|
CommandWhitelistBukkit.getConfigCache().debug("Actively prevented "+event.getSender().getName()+"'s tab completion (sus packet)");
|
||||||
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (event.getCompletions().isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
event.setCompletions(CommandUtil.filterSuggestions(buffer, event.getCompletions(), CommandWhitelistBukkit.getSuggestions(player)));
|
event.setCompletions(CommandUtil.filterSuggestions(buffer, event.getCompletions(), CommandWhitelistBukkit.getSuggestions(player)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+7
-2
@@ -1,6 +1,7 @@
|
|||||||
package eu.endermite.commandwhitelist.bukkit.listeners;
|
package eu.endermite.commandwhitelist.bukkit.listeners;
|
||||||
|
|
||||||
import eu.endermite.commandwhitelist.bukkit.CommandWhitelistBukkit;
|
import eu.endermite.commandwhitelist.bukkit.CommandWhitelistBukkit;
|
||||||
|
import eu.endermite.commandwhitelist.common.CWPermission;
|
||||||
import eu.endermite.commandwhitelist.common.CommandUtil;
|
import eu.endermite.commandwhitelist.common.CommandUtil;
|
||||||
import eu.endermite.commandwhitelist.common.ConfigCache;
|
import eu.endermite.commandwhitelist.common.ConfigCache;
|
||||||
import eu.endermite.commandwhitelist.common.commands.CWCommand;
|
import eu.endermite.commandwhitelist.common.commands.CWCommand;
|
||||||
@@ -16,10 +17,14 @@ public class PlayerCommandPreProcessListener implements Listener {
|
|||||||
@EventHandler(priority = EventPriority.HIGHEST)
|
@EventHandler(priority = EventPriority.HIGHEST)
|
||||||
public void PlayerCommandSendEvent(org.bukkit.event.player.PlayerCommandPreprocessEvent event) {
|
public void PlayerCommandSendEvent(org.bukkit.event.player.PlayerCommandPreprocessEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
if (player.hasPermission("commandwhitelist.bypass")) return;
|
if (player.hasPermission(CWPermission.BYPASS.permission())) return;
|
||||||
String caseSensitiveLabel = CommandUtil.getCommandLabel(event.getMessage());
|
String caseSensitiveLabel = CommandUtil.getCommandLabel(event.getMessage());
|
||||||
String label = caseSensitiveLabel.toLowerCase();
|
String label = caseSensitiveLabel.toLowerCase();
|
||||||
event.setMessage(event.getMessage().replaceFirst(caseSensitiveLabel, label));
|
|
||||||
|
String fullCommand = event.getMessage().substring(label.length()+1);
|
||||||
|
fullCommand = "/"+label+fullCommand;
|
||||||
|
|
||||||
|
event.setMessage(fullCommand);
|
||||||
BukkitAudiences audiences = CommandWhitelistBukkit.getAudiences();
|
BukkitAudiences audiences = CommandWhitelistBukkit.getAudiences();
|
||||||
ConfigCache config = CommandWhitelistBukkit.getConfigCache();
|
ConfigCache config = CommandWhitelistBukkit.getConfigCache();
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -17,13 +17,12 @@ public class TabCompleteBlockerListener implements Listener {
|
|||||||
Player player = (Player) event.getSender();
|
Player player = (Player) event.getSender();
|
||||||
if (player.hasPermission(CWPermission.BYPASS.permission())) return;
|
if (player.hasPermission(CWPermission.BYPASS.permission())) return;
|
||||||
String buffer = event.getBuffer();
|
String buffer = event.getBuffer();
|
||||||
if (!buffer.endsWith(" ") && buffer.split(" ").length == 1) {
|
if ((buffer.split(" ").length == 1 && !buffer.endsWith(" ")) || !buffer.startsWith("/")) {
|
||||||
CommandWhitelistBukkit.getConfigCache().debug("Actively prevented "+event.getSender().getName()+"'s tab completion (/[tab] packet)");
|
CommandWhitelistBukkit.getConfigCache().debug("Actively prevented "+event.getSender().getName()+"'s tab completion (sus packet)");
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (event.getCompletions().isEmpty()) {
|
if (event.getCompletions().isEmpty()) {
|
||||||
CommandWhitelistBukkit.getConfigCache().debug("Tab completion not provided");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
event.setCompletions(
|
event.setCompletions(
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ api-version: 1.13
|
|||||||
main: eu.endermite.commandwhitelist.bukkit.CommandWhitelistBukkit
|
main: eu.endermite.commandwhitelist.bukkit.CommandWhitelistBukkit
|
||||||
authors: [YouHaveTrouble]
|
authors: [YouHaveTrouble]
|
||||||
website: youhavetrouble.me
|
website: youhavetrouble.me
|
||||||
|
folia-supported: true
|
||||||
softdepend:
|
softdepend:
|
||||||
- ProtocolLib
|
- ProtocolLib
|
||||||
description: Control what commands players can use
|
description: Control what commands players can use
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>eu.endermite.commandwhitelist</groupId>
|
<groupId>eu.endermite.commandwhitelist</groupId>
|
||||||
<artifactId>CommandWhitelist</artifactId>
|
<artifactId>CommandWhitelist</artifactId>
|
||||||
<version>2.5.1</version>
|
<version>2.8.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>Common</artifactId>
|
<artifactId>Common</artifactId>
|
||||||
@@ -76,19 +76,19 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.thatsmusic99</groupId>
|
<groupId>com.github.thatsmusic99</groupId>
|
||||||
<artifactId>ConfigurationMaster-API</artifactId>
|
<artifactId>ConfigurationMaster-API</artifactId>
|
||||||
<version>v2.0.0-BETA-1</version>
|
<version>v2.0.0-BETA-6</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.velocitypowered</groupId>
|
<groupId>com.velocitypowered</groupId>
|
||||||
<artifactId>velocity-api</artifactId>
|
<artifactId>velocity-api</artifactId>
|
||||||
<version>1.1.0</version>
|
<version>3.1.2-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.kyori</groupId>
|
<groupId>net.kyori</groupId>
|
||||||
<artifactId>adventure-text-minimessage</artifactId>
|
<artifactId>adventure-text-minimessage</artifactId>
|
||||||
<version>4.11.0</version>
|
<version>4.13.1</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
+3
-2
@@ -84,11 +84,12 @@ public class CommandUtil {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
try {
|
||||||
ConfigFile dumpFile = ConfigFile.loadConfig(file);
|
ConfigFile dumpFile = ConfigFile.loadConfig(file);
|
||||||
dumpFile.set("commands", serverCommands);
|
dumpFile.set("commands", serverCommands);
|
||||||
try {
|
|
||||||
dumpFile.save();
|
dumpFile.save();
|
||||||
} catch (IOException e) {
|
} catch (Exception e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
+10
-1
@@ -24,13 +24,22 @@ public class ConfigCache {
|
|||||||
this.canDoProtocolLib = canDoProtocolLib;
|
this.canDoProtocolLib = canDoProtocolLib;
|
||||||
this.logger = logger;
|
this.logger = logger;
|
||||||
|
|
||||||
|
try {
|
||||||
reloadConfig();
|
reloadConfig();
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean reloadConfig() {
|
public boolean reloadConfig() {
|
||||||
|
|
||||||
createFiles();
|
createFiles();
|
||||||
|
try {
|
||||||
config = ConfigFile.loadConfig(configFile);
|
config = ConfigFile.loadConfig(configFile);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
config.addDefault("messages.prefix", "CommandWhitelist > ");
|
config.addDefault("messages.prefix", "CommandWhitelist > ");
|
||||||
config.addDefault("messages.command_denied", "No such command.");
|
config.addDefault("messages.command_denied", "No such command.");
|
||||||
@@ -106,7 +115,7 @@ public class ConfigCache {
|
|||||||
try {
|
try {
|
||||||
config.save();
|
config.save();
|
||||||
return true;
|
return true;
|
||||||
} catch (IOException e) {
|
} catch (Exception e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-26
@@ -3,30 +3,16 @@ package eu.endermite.commandwhitelist.common.commands;
|
|||||||
import eu.endermite.commandwhitelist.common.CWGroup;
|
import eu.endermite.commandwhitelist.common.CWGroup;
|
||||||
import eu.endermite.commandwhitelist.common.ConfigCache;
|
import eu.endermite.commandwhitelist.common.ConfigCache;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
|
import net.kyori.adventure.text.TextComponent;
|
||||||
import net.kyori.adventure.text.format.NamedTextColor;
|
import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||||
import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
|
|
||||||
import net.kyori.adventure.text.minimessage.tag.standard.StandardTags;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class CWCommand {
|
public class CWCommand {
|
||||||
|
|
||||||
public static MiniMessage miniMessage = MiniMessage.builder().tags(
|
public static MiniMessage miniMessage = MiniMessage.miniMessage();
|
||||||
TagResolver.builder()
|
|
||||||
.resolver(StandardTags.color())
|
|
||||||
.resolver(StandardTags.decorations())
|
|
||||||
.resolver(StandardTags.gradient())
|
|
||||||
.resolver(StandardTags.font())
|
|
||||||
.resolver(StandardTags.reset())
|
|
||||||
.resolver(StandardTags.rainbow())
|
|
||||||
.resolver(StandardTags.translatable())
|
|
||||||
.resolver(StandardTags.newline())
|
|
||||||
.resolver(StandardTags.clickEvent())
|
|
||||||
.resolver(StandardTags.keybind())
|
|
||||||
.build()
|
|
||||||
).build();
|
|
||||||
|
|
||||||
public static boolean addToWhitelist(ConfigCache configCache, String command, String group) {
|
public static boolean addToWhitelist(ConfigCache configCache, String command, String group) {
|
||||||
CWGroup cwGroup = configCache.getGroupList().get(group);
|
CWGroup cwGroup = configCache.getGroupList().get(group);
|
||||||
@@ -46,20 +32,20 @@ public class CWCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Component helpComponent(String baseCommand, boolean showReloadCommand, boolean showAdminCommands) {
|
public static Component helpComponent(String baseCommand, boolean showReloadCommand, boolean showAdminCommands) {
|
||||||
Component component = miniMessage.deserialize("<rainbow><bold>CommandWhitelist by YouHaveTrouble</bold>")
|
final TextComponent.Builder builder = Component.text();
|
||||||
.append(Component.newline());
|
builder.append(miniMessage.deserialize("<rainbow><bold>CommandWhitelist by YouHaveTrouble</bold>"), Component.newline());
|
||||||
component = component.append(Component.text(baseCommand + " help").color(NamedTextColor.AQUA).append(Component.text(" - Displays this message").color(NamedTextColor.BLUE)));
|
builder.append(Component.text(baseCommand + " help", NamedTextColor.AQUA), Component.text(" - Displays this message", NamedTextColor.BLUE));
|
||||||
if (showReloadCommand) {
|
if (showReloadCommand) {
|
||||||
component = component.append(Component.newline());
|
builder.append(Component.newline());
|
||||||
component = component.append(Component.text(baseCommand + " reload").color(NamedTextColor.AQUA).append(Component.text(" - Reloads plugin configuration").color(NamedTextColor.BLUE)));
|
builder.append(Component.text(baseCommand + " reload", NamedTextColor.AQUA), Component.text(" - Reloads plugin configuration", NamedTextColor.BLUE));
|
||||||
}
|
}
|
||||||
if (showAdminCommands) {
|
if (showAdminCommands) {
|
||||||
component = component.append(Component.newline());
|
builder.append(Component.newline());
|
||||||
component = component.append(Component.text(baseCommand + " add <group> <command>").color(NamedTextColor.AQUA).append(Component.text(" - Add a command to selected permission group").color(NamedTextColor.BLUE)));
|
builder.append(Component.text(baseCommand + " add <group> <command>", NamedTextColor.AQUA), Component.text(" - Add a command to selected permission group", NamedTextColor.BLUE));
|
||||||
component = component.append(Component.newline());
|
builder.append(Component.newline());
|
||||||
component = component.append(Component.text(baseCommand + " remove <group> <command>").color(NamedTextColor.AQUA).append(Component.text(" - Removes a command from selected permission group").color(NamedTextColor.BLUE)));
|
builder.append(Component.text(baseCommand + " remove <group> <command>", NamedTextColor.AQUA), Component.text(" - Removes a command from selected permission group", NamedTextColor.BLUE));
|
||||||
}
|
}
|
||||||
return component;
|
return builder.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum CommandType {
|
public enum CommandType {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>eu.endermite.commandwhitelist</groupId>
|
<groupId>eu.endermite.commandwhitelist</groupId>
|
||||||
<artifactId>CommandWhitelist</artifactId>
|
<artifactId>CommandWhitelist</artifactId>
|
||||||
<version>2.5.1</version>
|
<version>2.8.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>Velocity</artifactId>
|
<artifactId>Velocity</artifactId>
|
||||||
@@ -50,6 +50,16 @@
|
|||||||
<shadedPattern>eu.endermite.bstats</shadedPattern>
|
<shadedPattern>eu.endermite.bstats</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
</relocations>
|
</relocations>
|
||||||
|
<artifactSet>
|
||||||
|
<excludes>
|
||||||
|
<exclude>net.kyori:adventure-api</exclude>
|
||||||
|
<exclude>net.kyori:adventure-key</exclude>
|
||||||
|
<exclude>net.kyori:examination-api</exclude>
|
||||||
|
<exclude>net.kyori:examination-string</exclude>
|
||||||
|
<exclude>org.jetbrains:annotations</exclude>
|
||||||
|
<exclude>org.intellij.lang:annotations</exclude>
|
||||||
|
</excludes>
|
||||||
|
</artifactSet>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
|||||||
+39
-35
@@ -1,6 +1,7 @@
|
|||||||
package eu.endermite.commandwhitelist.velocity;
|
package eu.endermite.commandwhitelist.velocity;
|
||||||
|
|
||||||
import com.velocitypowered.api.command.CommandMeta;
|
import com.google.inject.Injector;
|
||||||
|
import com.mojang.brigadier.Command;
|
||||||
import com.velocitypowered.api.command.CommandSource;
|
import com.velocitypowered.api.command.CommandSource;
|
||||||
import com.velocitypowered.api.event.Subscribe;
|
import com.velocitypowered.api.event.Subscribe;
|
||||||
import com.velocitypowered.api.event.command.CommandExecuteEvent;
|
import com.velocitypowered.api.event.command.CommandExecuteEvent;
|
||||||
@@ -11,16 +12,15 @@ import com.velocitypowered.api.proxy.Player;
|
|||||||
import com.velocitypowered.api.proxy.ProxyServer;
|
import com.velocitypowered.api.proxy.ProxyServer;
|
||||||
import eu.endermite.commandwhitelist.common.CWGroup;
|
import eu.endermite.commandwhitelist.common.CWGroup;
|
||||||
import eu.endermite.commandwhitelist.common.CWPermission;
|
import eu.endermite.commandwhitelist.common.CWPermission;
|
||||||
|
import eu.endermite.commandwhitelist.common.CommandUtil;
|
||||||
import eu.endermite.commandwhitelist.common.ConfigCache;
|
import eu.endermite.commandwhitelist.common.ConfigCache;
|
||||||
import eu.endermite.commandwhitelist.common.commands.CWCommand;
|
import eu.endermite.commandwhitelist.common.commands.CWCommand;
|
||||||
import eu.endermite.commandwhitelist.velocity.command.VelocityMainCommand;
|
import eu.endermite.commandwhitelist.velocity.command.VelocityMainCommand;
|
||||||
import net.kyori.adventure.identity.Identity;
|
|
||||||
import org.bstats.charts.SimplePie;
|
import org.bstats.charts.SimplePie;
|
||||||
import org.bstats.velocity.Metrics;
|
import org.bstats.velocity.Metrics;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
import java.io.File;
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@@ -29,51 +29,57 @@ import java.util.Map;
|
|||||||
|
|
||||||
public class CommandWhitelistVelocity {
|
public class CommandWhitelistVelocity {
|
||||||
|
|
||||||
private static CommandWhitelistVelocity plugin;
|
private final ProxyServer server;
|
||||||
private static ProxyServer server;
|
private ConfigCache configCache;
|
||||||
private static ConfigCache configCache;
|
private final Path folder;
|
||||||
private static Path folder;
|
private final Logger logger;
|
||||||
private static Logger logger;
|
|
||||||
private final Metrics.Factory metricsFactory;
|
private final Metrics.Factory metricsFactory;
|
||||||
|
private final Injector injector;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public CommandWhitelistVelocity(ProxyServer server, Logger logger, @DataDirectory final Path folder, Metrics.Factory metricsFactory) {
|
public CommandWhitelistVelocity(
|
||||||
CommandWhitelistVelocity.server = server;
|
ProxyServer server,
|
||||||
CommandWhitelistVelocity.folder = folder;
|
Logger logger,
|
||||||
CommandWhitelistVelocity.plugin = this;
|
@DataDirectory final Path folder,
|
||||||
CommandWhitelistVelocity.logger = logger;
|
Metrics.Factory metricsFactory,
|
||||||
|
Injector injector
|
||||||
|
) {
|
||||||
|
this.server = server;
|
||||||
|
this.folder = folder;
|
||||||
|
this.logger = logger;
|
||||||
this.metricsFactory = metricsFactory;
|
this.metricsFactory = metricsFactory;
|
||||||
|
this.injector = injector;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void reloadConfig() {
|
private void reloadConfig() {
|
||||||
if (configCache == null)
|
if (configCache == null)
|
||||||
configCache = new ConfigCache(new File(String.valueOf(folder), "config.yml"), false, logger);
|
configCache = new ConfigCache(folder.resolve("config.yml").toFile(), false, logger);
|
||||||
else
|
else
|
||||||
configCache.reloadConfig();
|
configCache.reloadConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void reloadConfig(CommandSource source) {
|
public int reloadConfig(CommandSource source) {
|
||||||
server.getScheduler().buildTask(plugin, () -> {
|
server.getScheduler().buildTask(this, () -> {
|
||||||
reloadConfig();
|
reloadConfig();
|
||||||
source.sendMessage(Identity.nil(), CWCommand.miniMessage.deserialize(getConfigCache().prefix + getConfigCache().config_reloaded));
|
source.sendMessage(CWCommand.miniMessage.deserialize(getConfigCache().prefix + getConfigCache().config_reloaded));
|
||||||
}).schedule();
|
}).schedule();
|
||||||
|
return Command.SINGLE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onProxyInitialization(ProxyInitializeEvent event) {
|
public void onProxyInitialization(ProxyInitializeEvent event) {
|
||||||
reloadConfig();
|
reloadConfig();
|
||||||
CommandMeta commandMeta = server.getCommandManager().metaBuilder("vcw").build();
|
injector.getInstance(VelocityMainCommand.class).register();
|
||||||
server.getCommandManager().register(commandMeta, new VelocityMainCommand());
|
|
||||||
Metrics metrics = metricsFactory.make(this, 8704);
|
Metrics metrics = metricsFactory.make(this, 8704);
|
||||||
metrics.addCustomChart(new SimplePie("proxy", () -> "Velocity"));
|
metrics.addCustomChart(new SimplePie("proxy", () -> "Velocity"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
|
@SuppressWarnings("UnstableApiUsage")
|
||||||
public void onUserCommandSendEvent(PlayerAvailableCommandsEvent event) {
|
public void onUserCommandSendEvent(PlayerAvailableCommandsEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
if (player.hasPermission(CWPermission.BYPASS.permission())) return;
|
if (player.hasPermission(CWPermission.BYPASS.permission())) return;
|
||||||
HashSet<String> allowedCommands = CommandWhitelistVelocity.getCommands(player);
|
HashSet<String> allowedCommands = getCommands(player);
|
||||||
event.getRootNode().getChildren().removeIf((commandNode) ->
|
event.getRootNode().getChildren().removeIf((commandNode) ->
|
||||||
server.getCommandManager().hasCommand(commandNode.getName())
|
server.getCommandManager().hasCommand(commandNode.getName())
|
||||||
&& !allowedCommands.contains(commandNode.getName())
|
&& !allowedCommands.contains(commandNode.getName())
|
||||||
@@ -81,32 +87,30 @@ public class CommandWhitelistVelocity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onUserCommandExecuteEvent(com.velocitypowered.api.event.command.CommandExecuteEvent event) {
|
public void onUserCommandExecuteEvent(CommandExecuteEvent event) {
|
||||||
if (!(event.getCommandSource() instanceof Player)) return;
|
if (!(event.getCommandSource() instanceof Player)) return;
|
||||||
Player player = (Player) event.getCommandSource();
|
Player player = (Player) event.getCommandSource();
|
||||||
|
|
||||||
if (player.hasPermission(CWPermission.BYPASS.permission())) return;
|
if (player.hasPermission(CWPermission.BYPASS.permission())) return;
|
||||||
|
|
||||||
HashSet<String> allowedCommands = CommandWhitelistVelocity.getCommands(player);
|
// Workaround for velocity executing "/ command" as valid command
|
||||||
String command = event.getCommand().split(" ")[0];
|
String command = event.getCommand().trim();
|
||||||
if (server.getCommandManager().hasCommand(command)
|
|
||||||
&& !allowedCommands.contains(command))
|
HashSet<String> allowedCommands = getCommands(player);
|
||||||
|
String label = CommandUtil.getCommandLabel(command);
|
||||||
|
if (server.getCommandManager().hasCommand(label) && !allowedCommands.contains(label))
|
||||||
event.setResult(CommandExecuteEvent.CommandResult.forwardToServer());
|
event.setResult(CommandExecuteEvent.CommandResult.forwardToServer());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ConfigCache getConfigCache() {
|
public ConfigCache getConfigCache() {
|
||||||
return configCache;
|
return configCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Path getConfigPath() {
|
|
||||||
return folder;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param player Velocity Player
|
* @param player Velocity Player
|
||||||
* @return commands available to the player
|
* @return commands available to the player
|
||||||
*/
|
*/
|
||||||
public static HashSet<String> getCommands(Player player) {
|
public HashSet<String> getCommands(Player player) {
|
||||||
HashMap<String, CWGroup> groups = configCache.getGroupList();
|
HashMap<String, CWGroup> groups = configCache.getGroupList();
|
||||||
HashSet<String> commandList = new HashSet<>();
|
HashSet<String> commandList = new HashSet<>();
|
||||||
for (Map.Entry<String, CWGroup> s : groups.entrySet()) {
|
for (Map.Entry<String, CWGroup> s : groups.entrySet()) {
|
||||||
@@ -123,7 +127,7 @@ public class CommandWhitelistVelocity {
|
|||||||
* @param player Velocity Player
|
* @param player Velocity Player
|
||||||
* @return subcommands unavailable for the player
|
* @return subcommands unavailable for the player
|
||||||
*/
|
*/
|
||||||
public static HashSet<String> getSuggestions(Player player, HashMap<String, CWGroup> groups) {
|
public HashSet<String> getSuggestions(Player player, HashMap<String, CWGroup> groups) {
|
||||||
HashSet<String> suggestionList = new HashSet<>();
|
HashSet<String> suggestionList = new HashSet<>();
|
||||||
for (Map.Entry<String, CWGroup> s : groups.entrySet()) {
|
for (Map.Entry<String, CWGroup> s : groups.entrySet()) {
|
||||||
if (s.getKey().equalsIgnoreCase("default"))
|
if (s.getKey().equalsIgnoreCase("default"))
|
||||||
@@ -134,7 +138,7 @@ public class CommandWhitelistVelocity {
|
|||||||
return suggestionList;
|
return suggestionList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ArrayList<String> getServerCommands() {
|
public ArrayList<String> getServerCommands() {
|
||||||
return new ArrayList<>(server.getCommandManager().getAliases());
|
return new ArrayList<>(server.getCommandManager().getAliases());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+121
-82
@@ -1,104 +1,143 @@
|
|||||||
package eu.endermite.commandwhitelist.velocity.command;
|
package eu.endermite.commandwhitelist.velocity.command;
|
||||||
|
|
||||||
|
import com.google.inject.Inject;
|
||||||
|
import com.mojang.brigadier.Command;
|
||||||
|
import com.mojang.brigadier.arguments.StringArgumentType;
|
||||||
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
|
import com.mojang.brigadier.builder.RequiredArgumentBuilder;
|
||||||
|
import com.mojang.brigadier.tree.LiteralCommandNode;
|
||||||
|
import com.velocitypowered.api.command.BrigadierCommand;
|
||||||
|
import com.velocitypowered.api.command.CommandManager;
|
||||||
import com.velocitypowered.api.command.CommandSource;
|
import com.velocitypowered.api.command.CommandSource;
|
||||||
import com.velocitypowered.api.command.SimpleCommand;
|
import com.velocitypowered.api.permission.Tristate;
|
||||||
|
import com.velocitypowered.api.plugin.annotation.DataDirectory;
|
||||||
|
import eu.endermite.commandwhitelist.common.CWGroup;
|
||||||
import eu.endermite.commandwhitelist.common.CWPermission;
|
import eu.endermite.commandwhitelist.common.CWPermission;
|
||||||
import eu.endermite.commandwhitelist.common.CommandUtil;
|
import eu.endermite.commandwhitelist.common.CommandUtil;
|
||||||
|
import eu.endermite.commandwhitelist.common.ConfigCache;
|
||||||
import eu.endermite.commandwhitelist.common.commands.CWCommand;
|
import eu.endermite.commandwhitelist.common.commands.CWCommand;
|
||||||
import eu.endermite.commandwhitelist.velocity.CommandWhitelistVelocity;
|
import eu.endermite.commandwhitelist.velocity.CommandWhitelistVelocity;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
|
|
||||||
import java.io.File;
|
import java.nio.file.Path;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.concurrent.CompletableFuture;
|
|
||||||
|
|
||||||
public class VelocityMainCommand implements SimpleCommand {
|
public final class VelocityMainCommand {
|
||||||
|
@Inject
|
||||||
|
private CommandManager commandManager;
|
||||||
|
@Inject
|
||||||
|
private CommandWhitelistVelocity plugin;
|
||||||
|
@Inject
|
||||||
|
@DataDirectory
|
||||||
|
private Path dataDirectory;
|
||||||
|
|
||||||
@Override
|
public void register() {
|
||||||
public void execute(final Invocation invocation) {
|
LiteralCommandNode<CommandSource> node = LiteralArgumentBuilder
|
||||||
CommandSource sender = invocation.source();
|
.<CommandSource>literal("vcw")
|
||||||
String[] args = invocation.arguments();
|
.requires(src -> src.getPermissionValue("commandwhitelist.command") != Tristate.FALSE)
|
||||||
String label = invocation.alias();
|
.executes(ctx -> {
|
||||||
|
CommandSource source = ctx.getSource();
|
||||||
|
source.sendMessage(CWCommand.helpComponent("vcw", source.hasPermission(CWPermission.RELOAD.permission()), source.hasPermission(CWPermission.ADMIN.permission())));
|
||||||
|
return Command.SINGLE_SUCCESS;
|
||||||
|
})
|
||||||
|
.then(LiteralArgumentBuilder.<CommandSource>literal("reload")
|
||||||
|
.requires(src -> src.hasPermission(CWPermission.RELOAD.permission()))
|
||||||
|
.executes(ctx -> plugin.reloadConfig(ctx.getSource()))
|
||||||
|
)
|
||||||
|
.then(LiteralArgumentBuilder.<CommandSource>literal("add")
|
||||||
|
.requires(src -> src.hasPermission(CWPermission.ADMIN.permission()))
|
||||||
|
.then(RequiredArgumentBuilder.<CommandSource, String>argument("group", StringArgumentType.word())
|
||||||
|
.suggests((ctx, builder) -> {
|
||||||
|
plugin.getConfigCache().getGroupList().keySet().forEach(builder::suggest);
|
||||||
|
return builder.buildFuture();
|
||||||
|
})
|
||||||
|
.then(RequiredArgumentBuilder.<CommandSource, String>argument("command", StringArgumentType.word())
|
||||||
|
.suggests((ctx, builder) -> {
|
||||||
|
CWGroup group = plugin.getConfigCache().getGroupList().get(ctx.getArgument("group", String.class));
|
||||||
|
if (group == null) return builder.buildFuture();
|
||||||
|
|
||||||
if (args.length == 0) {
|
for (String cmd : plugin.getServerCommands()) {
|
||||||
sender.sendMessage(CWCommand.helpComponent(label, sender.hasPermission(CWPermission.RELOAD.permission()), sender.hasPermission(CWPermission.ADMIN.permission())));
|
if (cmd.charAt(0) == '/')
|
||||||
return;
|
cmd = cmd.substring(1);
|
||||||
|
if (cmd.indexOf(':') != -1) {
|
||||||
|
String[] cmdSplit = cmd.split(":");
|
||||||
|
if (cmdSplit.length < 2) continue;
|
||||||
|
cmd = cmdSplit[1];
|
||||||
}
|
}
|
||||||
|
if (group.getCommands().contains(cmd)) continue;
|
||||||
|
builder.suggest(cmd);
|
||||||
|
}
|
||||||
|
return builder.buildFuture();
|
||||||
|
})
|
||||||
|
.executes(ctx -> {
|
||||||
|
CommandSource source = ctx.getSource();
|
||||||
|
ConfigCache configCache = plugin.getConfigCache();
|
||||||
|
String arg1 = ctx.getArgument("group", String.class);
|
||||||
|
String arg2 = ctx.getArgument("command", String.class);
|
||||||
|
|
||||||
try {
|
if (CWCommand.addToWhitelist(configCache, arg2, arg1))
|
||||||
CWCommand.CommandType commandType = CWCommand.CommandType.valueOf(args[0].toUpperCase());
|
source.sendMessage(CWCommand.miniMessage.deserialize(String.format(configCache.prefix + configCache.added_to_whitelist, arg2, arg1)));
|
||||||
switch (commandType) {
|
|
||||||
case RELOAD:
|
|
||||||
if (!sender.hasPermission(CWPermission.RELOAD.permission())) {
|
|
||||||
sender.sendMessage(CWCommand.miniMessage.deserialize(CommandWhitelistVelocity.getConfigCache().prefix + CommandWhitelistVelocity.getConfigCache().no_permission));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
CommandWhitelistVelocity.reloadConfig(sender);
|
|
||||||
return;
|
|
||||||
case ADD:
|
|
||||||
if (!sender.hasPermission(CWPermission.ADMIN.permission())) {
|
|
||||||
sender.sendMessage(CWCommand.miniMessage.deserialize(CommandWhitelistVelocity.getConfigCache().prefix + CommandWhitelistVelocity.getConfigCache().no_permission));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (args.length == 3) {
|
|
||||||
if (CWCommand.addToWhitelist(CommandWhitelistVelocity.getConfigCache(), args[2], args[1]))
|
|
||||||
sender.sendMessage(CWCommand.miniMessage.deserialize(String.format(CommandWhitelistVelocity.getConfigCache().prefix + CommandWhitelistVelocity.getConfigCache().added_to_whitelist, args[2], args[1])));
|
|
||||||
else
|
else
|
||||||
sender.sendMessage(CWCommand.miniMessage.deserialize(String.format(CommandWhitelistVelocity.getConfigCache().prefix + CommandWhitelistVelocity.getConfigCache().group_doesnt_exist, args[1])));
|
source.sendMessage(CWCommand.miniMessage.deserialize(String.format(configCache.prefix + configCache.group_doesnt_exist, arg1)));
|
||||||
} else
|
return Command.SINGLE_SUCCESS;
|
||||||
sender.sendMessage(Component.text("/" + label + " add <group> <command>"));
|
})
|
||||||
return;
|
)
|
||||||
case REMOVE:
|
)
|
||||||
if (!sender.hasPermission(CWPermission.ADMIN.permission())) {
|
)
|
||||||
sender.sendMessage(CWCommand.miniMessage.deserialize(CommandWhitelistVelocity.getConfigCache().prefix + CommandWhitelistVelocity.getConfigCache().no_permission));
|
.then(LiteralArgumentBuilder.<CommandSource>literal("remove")
|
||||||
return;
|
.requires(src -> src.hasPermission(CWPermission.ADMIN.permission()))
|
||||||
|
.then(RequiredArgumentBuilder.<CommandSource, String>argument("group", StringArgumentType.word())
|
||||||
|
.suggests((ctx, builder) -> {
|
||||||
|
plugin.getConfigCache().getGroupList().keySet().forEach(builder::suggest);
|
||||||
|
return builder.buildFuture();
|
||||||
|
})
|
||||||
|
.then(RequiredArgumentBuilder.<CommandSource, String>argument("command", StringArgumentType.word())
|
||||||
|
.suggests((ctx, builder) -> {
|
||||||
|
CWGroup group = plugin.getConfigCache().getGroupList().get(ctx.getArgument("group", String.class));
|
||||||
|
if (group == null) return builder.buildFuture();
|
||||||
|
|
||||||
|
for (String s : group.getCommands()) {
|
||||||
|
builder.suggest(s);
|
||||||
}
|
}
|
||||||
if (args.length == 3) {
|
return builder.buildFuture();
|
||||||
if (CWCommand.removeFromWhitelist(CommandWhitelistVelocity.getConfigCache(), args[2], args[1]))
|
})
|
||||||
sender.sendMessage(CWCommand.miniMessage.deserialize(String.format(CommandWhitelistVelocity.getConfigCache().prefix + CommandWhitelistVelocity.getConfigCache().removed_from_whitelist, args[2], args[1])));
|
.executes(ctx -> {
|
||||||
|
CommandSource source = ctx.getSource();
|
||||||
|
ConfigCache configCache = plugin.getConfigCache();
|
||||||
|
String arg1 = ctx.getArgument("group", String.class);
|
||||||
|
String arg2 = ctx.getArgument("command", String.class);
|
||||||
|
|
||||||
|
if (CWCommand.removeFromWhitelist(configCache, arg2, arg1))
|
||||||
|
source.sendMessage(CWCommand.miniMessage.deserialize(String.format(configCache.prefix + configCache.removed_from_whitelist, arg2, arg1)));
|
||||||
else
|
else
|
||||||
sender.sendMessage(CWCommand.miniMessage.deserialize(String.format(CommandWhitelistVelocity.getConfigCache().prefix + CommandWhitelistVelocity.getConfigCache().group_doesnt_exist, args[1])));
|
source.sendMessage(CWCommand.miniMessage.deserialize(String.format(configCache.prefix + configCache.group_doesnt_exist, arg1)));
|
||||||
} else
|
return Command.SINGLE_SUCCESS;
|
||||||
sender.sendMessage(Component.text("/" + label + " remove <group> <command>"));
|
})
|
||||||
return;
|
)
|
||||||
case DUMP:
|
)
|
||||||
if (!sender.hasPermission(CWPermission.ADMIN.permission())) {
|
)
|
||||||
sender.sendMessage(CWCommand.miniMessage.deserialize(CommandWhitelistVelocity.getConfigCache().prefix + CommandWhitelistVelocity.getConfigCache().no_permission));
|
.then(LiteralArgumentBuilder.<CommandSource>literal("dump")
|
||||||
return;
|
.requires(src -> src.hasPermission(CWPermission.ADMIN.permission()))
|
||||||
}
|
.executes(ctx -> {
|
||||||
sender.sendMessage(Component.text("Dumping all available commands to a file..."));
|
CommandSource source = ctx.getSource();
|
||||||
if (CommandUtil.dumpAllBukkitCommands(CommandWhitelistVelocity.getServerCommands(), new File(String.valueOf(CommandWhitelistVelocity.getConfigPath()), "command_dump.yml"))) {
|
source.sendMessage(Component.text("Dumping all available commands to a file..."));
|
||||||
sender.sendMessage(Component.text("Commands dumped to command_dump.yml"));
|
if (CommandUtil.dumpAllBukkitCommands(plugin.getServerCommands(), dataDirectory.resolve("command_dump.yml").toFile())) {
|
||||||
|
source.sendMessage(Component.text("Commands dumped to command_dump.yml"));
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(Component.text("Failed to save the file."));
|
source.sendMessage(Component.text("Failed to save the file."));
|
||||||
}
|
|
||||||
return;
|
|
||||||
case HELP:
|
|
||||||
default:
|
|
||||||
sender.sendMessage(CWCommand.helpComponent(label, sender.hasPermission(CWPermission.RELOAD.permission()), sender.hasPermission(CWPermission.ADMIN.permission())));
|
|
||||||
}
|
}
|
||||||
|
return Command.SINGLE_SUCCESS;
|
||||||
|
})
|
||||||
|
)
|
||||||
|
.then(LiteralArgumentBuilder.<CommandSource>literal("help")
|
||||||
|
.executes(ctx -> {
|
||||||
|
CommandSource source = ctx.getSource();
|
||||||
|
source.sendMessage(CWCommand.helpComponent("cw", source.hasPermission(CWPermission.RELOAD.permission()), source.hasPermission(CWPermission.ADMIN.permission())));
|
||||||
|
return Command.SINGLE_SUCCESS;
|
||||||
|
})
|
||||||
|
)
|
||||||
|
.build();
|
||||||
|
|
||||||
} catch (IllegalArgumentException e) {
|
final BrigadierCommand command = new BrigadierCommand(node);
|
||||||
sender.sendMessage(CWCommand.helpComponent(label, sender.hasPermission(CWPermission.RELOAD.permission()), sender.hasPermission(CWPermission.ADMIN.permission())));
|
commandManager.register(commandManager.metaBuilder(command).plugin(plugin).build(), command);
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public CompletableFuture<List<String>> suggestAsync(Invocation invocation) {
|
|
||||||
CommandSource source = invocation.source();
|
|
||||||
String[] args = invocation.arguments();
|
|
||||||
return CompletableFuture.supplyAsync(() -> {
|
|
||||||
List<String> serverCommands = CommandWhitelistVelocity.getServerCommands();
|
|
||||||
return CWCommand.commandSuggestions(
|
|
||||||
CommandWhitelistVelocity.getConfigCache(),
|
|
||||||
serverCommands,
|
|
||||||
args,
|
|
||||||
source.hasPermission(CWPermission.RELOAD.permission()),
|
|
||||||
source.hasPermission(CWPermission.ADMIN.permission()),
|
|
||||||
CWCommand.ImplementationType.VELOCITY
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>eu.endermite.commandwhitelist</groupId>
|
<groupId>eu.endermite.commandwhitelist</groupId>
|
||||||
<artifactId>CommandWhitelist</artifactId>
|
<artifactId>CommandWhitelist</artifactId>
|
||||||
<version>2.5.1</version>
|
<version>2.8.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>Waterfall</artifactId>
|
<artifactId>Waterfall</artifactId>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>eu.endermite.commandwhitelist</groupId>
|
<groupId>eu.endermite.commandwhitelist</groupId>
|
||||||
<artifactId>CommandWhitelist</artifactId>
|
<artifactId>CommandWhitelist</artifactId>
|
||||||
<version>2.5.1</version>
|
<version>2.8.0</version>
|
||||||
<modules>
|
<modules>
|
||||||
<module>CommandWhitelistCommon</module>
|
<module>CommandWhitelistCommon</module>
|
||||||
<module>CommandWhitelistBukkit</module>
|
<module>CommandWhitelistBukkit</module>
|
||||||
|
|||||||
Reference in New Issue
Block a user