Archived
0

Updated all modules to work with ModuleLoader major version 5

Except BlockPlaceMods
This commit is contained in:
Minenash
2018-12-28 15:38:24 -05:00
parent 1ac73460ee
commit 6d1a1d5a38
77 changed files with 155 additions and 38 deletions

View File

@@ -21,7 +21,7 @@ import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Abot implements Module, Listener {
private File answerFile = new File(Main.plugin.getDataFolder(), "abot.json");
JSONArray answers;

View File

@@ -0,0 +1,3 @@
displayName: Abot
category: Other
description: An annoying little bot to automatically answer questions in chat

View File

@@ -33,7 +33,7 @@ import net.nemez.chatapi.ChatAPI;
*/
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Adminchat implements Module, Listener {
private static final char defaultKey = ',';
private static final File keysLocation = new File(Main.plugin.getDataFolder(), "adminchat_keys.json");

View File

@@ -0,0 +1,3 @@
displayName: Adminchat
category: Staff
description: A secondary chat used for staff to communicate with each other

View File

@@ -15,7 +15,7 @@ import org.bukkit.event.HandlerList;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 0, revision = 6, compatible = 5)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class AFK implements Module {
private AFKListener listener;

View File

@@ -0,0 +1,3 @@
displayName: AFK
category: Chat
description: Allows a user to announce they're afk ,and will also notify players messaging them, that they're afk and might not see the message

View File

@@ -0,0 +1,3 @@
displayName:
category:
description:

View File

@@ -33,7 +33,7 @@ import net.nemez.chatapi.click.Message;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 2, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Chat implements Module, Listener {
private final Map<String, String> defaults = new HashMap<>();
private Set<UUID> chatonly = new HashSet<>();

View File

@@ -0,0 +1,3 @@
displayName: Chat
category: Chat
description: Stylizes chat and adds a bunch of chat commands, including &e/me&7 and &e/shrug

View File

@@ -32,7 +32,7 @@ import net.nemez.chatapi.ChatAPI;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 2, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Chatalias implements Module, Listener {
private final String[] commands = new String[] { "e?r", "e?m .+?", "e?t", "e?w", "e?msg .+?", "e?message .+?", "e?whisper .+?", "e?me", "cgsay", "ac", "bc",
"say", "sayn .+?", "chat", "shrug", "action", "speak", "chatn", "speakn" };

View File

@@ -0,0 +1,3 @@
displayName: ChatAlias
category: Chat
description: Allows players to create aliases. For example wb -> Welcome Back

View File

@@ -37,7 +37,7 @@ import net.nemez.chatapi.ChatAPI;
*/
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Chatgroups implements Module, Listener {
private static final char defaultKey = ':';
private static final File groupsLocation = new File(Main.plugin.getDataFolder(), "chatgroups.json");

View File

@@ -0,0 +1,3 @@
displayName: ChatGroups
category: Chat
description: Adds a secondary chat for people who speak a different language or working on projects together

View File

@@ -36,7 +36,7 @@ import com.redstoner.modules.Module;
import net.nemez.chatapi.click.Message;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 2, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Check implements Module, Listener {
MysqlTable table;
String noTableReason;

View File

@@ -0,0 +1,3 @@
displayName: Check
category: Staff
description: A tool to get basic data about players, such as forums account, playtimes and similar

View File

@@ -12,7 +12,7 @@ import com.redstoner.misc.CommandHolderType;
import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 4, minor = 0, revision = 0, compatible = 4)
public class Clear implements Module {
@Command(hook = "clear")
public boolean clearInventory(CommandSender sender) {

View File

@@ -0,0 +1,3 @@
displayName: Clear
category: Other
description: Allows players to clear their inventories

View File

@@ -24,7 +24,7 @@ import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Cycle implements Module, Listener {
private File cycleFile = new File(Main.plugin.getDataFolder(), "cycle.json");
private JSONArray no_cyclers;

View File

@@ -0,0 +1,3 @@
displayName: Cycle
category: Other
description: Basically more hotbars. When you scroll over, it will load the next line of your inventory as your hotbar

View File

@@ -39,7 +39,7 @@ import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class DamnSpam implements Module, Listener {
File configFile = new File(Main.plugin.getDataFolder(), "DamnSpam.json");

View File

@@ -0,0 +1,3 @@
displayName: Damnspam
category: Other
description: Protects levers and buttons from being spammed by providing a configurable timeout for inputs

View File

@@ -35,7 +35,7 @@ import com.redstoner.modules.Module;
@Commands(CommandHolderType.Stream)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 10, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public final class DataManager implements CoreModule, Listener {
protected final File dataFolder = new File(Main.plugin.getDataFolder(), "data");

View File

@@ -0,0 +1,3 @@
displayName: Datamanager
category: Other
description: Adds easy module and player based data management

View File

@@ -25,7 +25,7 @@ import com.redstoner.modules.Module;
import net.nemez.chatapi.click.Message;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 0, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Discord implements Module {
private MysqlTable table;

View File

@@ -0,0 +1,3 @@
displayName: Discord
category: External
description: Links your minecraft account to your discord account to sync your rank.

View File

@@ -29,7 +29,7 @@ import com.redstoner.modules.datamanager.DataManager;
@AutoRegisterListener
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 0, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Friends implements CoreModule {
@EventHandler(priority = EventPriority.MONITOR)
public void onPlayerJoin(PlayerJoinEvent e) {

View File

@@ -0,0 +1,3 @@
displayName: Friends
category: Other
description: Notifies players when a friend comes online. Also used by other modules for various features

View File

@@ -25,7 +25,7 @@ import net.nemez.chatapi.click.Message;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 0, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Ignore implements Module {
@Command(hook = "unignore", async = AsyncType.ALWAYS)
public boolean unignore(CommandSender sender, String player) {

View File

@@ -0,0 +1,3 @@
displayName: Ignore
category: Chat
description: Allows someone to ignore players' chat messages and integrates with other modules

View File

@@ -18,7 +18,7 @@ import com.redstoner.misc.CommandHolderType;
import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class LagChunks implements Module
{
private List<LaggyChunk> laggyChunks = new ArrayList<LaggyChunk>();

View File

@@ -0,0 +1,3 @@
displayName: LagChunks
category: Staff
description: Collects information about entities across the map and displays chunk info

View File

@@ -18,7 +18,7 @@ import com.redstoner.modules.datamanager.DataManager;
import net.nemez.chatapi.click.Message;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 0, revision = 5, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class List implements Module
{
private HashMap<String, Integer> onConsole;

View File

@@ -0,0 +1,3 @@
displayName: List
category: Other
description: Lists the players online separated by rank and subrank.

View File

@@ -36,7 +36,7 @@ import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class LoginSecurity implements Module, Listener
{
protected static Map<UUID, Location> loggingIn;

View File

@@ -0,0 +1,3 @@
displayName: LoginSecurity
category: Other
description: Secure your account with an additional password required when you join the server

View File

@@ -15,7 +15,7 @@ import com.redstoner.modules.ModuleLogger;
import com.redstoner.modules.datamanager.DataManager;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 0, revision = 4, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Logs implements Module
{
public static final String defaultFormat = "§7 > %f: %r";

View File

@@ -0,0 +1,3 @@
displayName: Logs
category: Staff
description: Allows staff to Search server logs in-game

View File

@@ -30,7 +30,7 @@ import net.nemez.chatapi.click.Message;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Mentio implements Module, Listener
{
private File mentioLocation = new File(Main.plugin.getDataFolder(), "mentio.json");

View File

@@ -0,0 +1,3 @@
displayName: Mentio
category: Chat
description: Plays a sound and highlights keywords from a player defined list

View File

@@ -27,7 +27,7 @@ import com.redstoner.modules.socialspy.Socialspy;
import net.nemez.chatapi.ChatAPI;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 0, revision = 4, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Message implements Module
{
HashMap<CommandSender, CommandSender> replyTargets = new HashMap<>();

View File

@@ -0,0 +1,3 @@
displayName: Message
category: Chat
description: A better version of minecraft's &e/msg&7 command

View File

@@ -30,7 +30,7 @@ import java.util.UUID;
@Commands (CommandHolderType.File)
@AutoRegisterListener
@Version (major = 4, minor = 1, revision = 0, compatible = 4)
@Version (major = 5, minor = 0, revision = 0, compatible = 4)
public class Misc implements Module, Listener {
private static final String[] SUDO_BLACKLIST = new String[] {
"(.*:)?e?sudo",

View File

@@ -0,0 +1,3 @@
displayName: Miscellaneous
category: Other
description: A collection of useful things

View File

@@ -16,7 +16,7 @@ import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Motd implements Module, Listener
{
private String default_motd, motd;

View File

@@ -0,0 +1,3 @@
displayName: MOTD
category: Staff
description: Changes the MOTD in-game

View File

@@ -21,7 +21,7 @@ import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 2, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Nametags implements Module, Listener
{
@EventHandler

View File

@@ -0,0 +1,3 @@
displayName: Nametags
category: Other
description: Sorts tab by rank and colors players' nametags

View File

@@ -20,7 +20,7 @@ import com.redstoner.modules.Module;
import net.md_5.bungee.api.ChatColor;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Naming implements Module
{
@Command(hook = "anvil")

View File

@@ -0,0 +1,3 @@
displayName: Naming
category: Other
description: Lets you change an item name and lore

View File

@@ -20,7 +20,7 @@ import com.redstoner.modules.Module;
import com.redstoner.modules.datamanager.DataManager;
@AutoRegisterListener
@Version(major = 4, minor = 0, revision = 3, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
@SuppressWarnings("unchecked")
public class OnlinePlayers implements Module, Listener
{

View File

@@ -0,0 +1,3 @@
displayName: OnlinePlayers
category: External
description: Provides a list of all players online with data in a .json file used for Redstoner's "Who's online feature"

View File

@@ -26,7 +26,7 @@ import net.nemez.chatapi.click.Message;
*
* @author Redempt */
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 2, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Reports implements Module
{
private int task = 0;

View File

@@ -0,0 +1,3 @@
displayName: Reports
category: Staff
description: Adds a /report command for people to use when no staff is on

View File

@@ -25,7 +25,7 @@ import net.nemez.chatapi.click.ClickCallback;
import net.nemez.chatapi.click.Message;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Saylol implements Module
{
private long lastLol = 0;

View File

@@ -0,0 +1,3 @@
displayName: Saylol
category: Chat
description: Adds the famous saylol plugin as a module

View File

@@ -11,7 +11,7 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 2, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Scriptutils implements Module
{
/** Prints Bukkit restart message

View File

@@ -0,0 +1,3 @@
displayName: ScriptUtils
category: External
description: Provides commands to external scripts for sending predefined messages in chat

View File

@@ -36,7 +36,7 @@ import net.nemez.chatapi.click.Message;
@AutoRegisterListener
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 0, revision = 11, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Seen implements Module, Listener
{
HashMap<UUID, JSONArray> names = new HashMap<>();

View File

@@ -0,0 +1,3 @@
displayName: Seen
category: Other
description: Allows players to see how long someone has been online/offline, previous names, when they first joined, and much time they've logged

View File

@@ -28,7 +28,7 @@ import com.redstoner.misc.CommandHolderType;
import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 0, revision = 2, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class SignalStrength implements Module
{

View File

@@ -0,0 +1,3 @@
displayName: SignalStrength
category: Other
description: Sets the amount of items in a container to achieve the given signal strength

View File

@@ -14,7 +14,7 @@ import com.redstoner.misc.CommandHolderType;
import com.redstoner.modules.Module;
@Commands(CommandHolderType.None)
@Version(major = 4, minor = 0, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
@AutoRegisterListener
public class SkullClick implements Module, Listener
{

View File

@@ -0,0 +1,3 @@
displayName: SkullClick
category: Other
description: Click a skull and find out who it was, before they were beheaded. You cruel monster

View File

@@ -25,7 +25,7 @@ import com.redstoner.modules.datamanager.DataManager;
import net.nemez.chatapi.click.Message;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 0, revision = 3, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Socialspy implements CoreModule
{
@Command(hook = "config_prefix_default")

View File

@@ -0,0 +1,3 @@
displayName: Socialspy
category: Staff
description: Allows staff to see DMs, Chatgroups and other stuff that offers socialspy integration

View File

@@ -20,7 +20,7 @@ import com.redstoner.misc.Main;
import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 0, revision = 1, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Tag implements Module
{
private File tagLocation = new File(Main.plugin.getDataFolder(), "tag.json");

View File

@@ -0,0 +1,3 @@
displayName: Tag
category: Staff
description: Add comments to players for easier communication (e.g. "Has spammed before")

View File

@@ -16,7 +16,7 @@ import com.redstoner.modules.datamanager.DataManager;
import net.nemez.chatapi.click.Message;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 0, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Teleport implements Module
{
public static final String PERMISSION_TELEPORT = "utils.admin.teleport";

View File

@@ -0,0 +1,3 @@
displayName: Teleport
category: Other
description: Allows players to teleport to each other, with permission of course

View File

@@ -18,7 +18,7 @@ import com.redstoner.misc.CommandHolderType;
import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class TileChunks implements Module
{
private List<LaggyTileChunk> laggyChunks = new ArrayList<>();

View File

@@ -0,0 +1,3 @@
displayName: TileChunk
category: Staff
description: Collects information about tile entities across the map and displays chunk info

View File

@@ -26,7 +26,7 @@ import com.redstoner.modules.datamanager.DataManager;
@Commands(CommandHolderType.File)
@AutoRegisterListener
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Vanish implements Module, Listener
{
private ArrayList<UUID> vanished = new ArrayList<>();

View File

@@ -0,0 +1,3 @@
displayName: Vanish
category: Staff
description: Allows staff to hide from the public entirely. &iPoof

View File

@@ -10,7 +10,7 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class Warn implements Module
{
@Command(hook = "warn")

View File

@@ -0,0 +1,3 @@
displayName: Warn
category: Chat
description: Warns other players when someone is about to do something laggy

View File

@@ -24,7 +24,7 @@ import com.redstoner.misc.mysql.elements.MysqlTable;
import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@Version(major = 4, minor = 1, revision = 0, compatible = 4)
@Version(major = 5, minor = 0, revision = 0, compatible = 4)
public class WebToken implements Module
{
private static final int TOKEN_LENGTH = 6;

View File

@@ -0,0 +1,3 @@
displayName: WebToken
category: External
description: Provides a way to generate the token for website signup