Code Monkey home page Code Monkey logo

projectessentials / projectessentials-cooldown Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 6.98 MB

⌛ Project Essentials Cooldown API - additional module for Essentials; Just controlling player command spamming.

License: GNU Lesser General Public License v3.0

Groovy 20.87% Kotlin 79.13%
forge-cooldowns minecraft-mod minecraft-forge-mod minecraft-api minecraft-forge-api forge-api minecraftforge minecraft forge-mod essentialsx projectessentials project-essentials essentials forge-essentials minecraft-essentials forge

projectessentials-cooldown's Introduction

Project Essentials Cooldown: cooldown module for Project Essentials.

What is it

This module is responsible for cooldown Minecraft commands. The mod adds a delay for the use of commands, prevents command-spamming and limits the number of uses for a certain time. A mod can also create cooldown for command aliases. The delay and other settings are controlled by the configuration of the mod. Useful information and documentation are here.

You can also use the API, for example, as a delay in the use of an item or the like, but instead of commands, you can use identifiers. (This is one of the ideas for use by third-party developers).

One more step

Compatibility

Currently mod branch supported forge version 28.0.X and 28.1.X (Minecraft 1.14.4).

Credits

projectessentials-cooldown's People

Contributors

bixelpitch avatar kuronoseihai avatar mairwunnx avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

kuronoseihai

projectessentials-cooldown's Issues

Command for controlling list with ignored players.

Cooldown additional commands implementation.

Need to implement commands for controlling list with ignored players through minecraft.

Basically this is something like /essentials cooldown ignored add \ remove <nickname>

Command permissions: for add ess.cooldown.ignore.add for remove ess.cooldown.ignore.remove, or common permission ess.cooldown.ignore.modify.

Ability to save player cooldowns before shutting down server or exit the game.

Cooldown additional functional for correct cooldowns behavior after re-logging or reloading server.

Currently, player cooldowns are not saved after exiting the game or rebooting the server, this is bad, because if it is a solitary world, then users can use this security hole for benefits.

For an explicit example, I can show this:

For example, you are the developer of one of the mods, you made an item that you want to make so that it can be used once every 5 minutes in real time. A player without waiting can simply exit the world and enter it again, thereby dropping object cooldowns or command cooldowns.

Commands for controlling command cooldowns.

Cooldown additional commands implementation.

Need to implement commands for controlling command cooldowns through minecraft.

Basically this is something like /essentials cooldown add \ remove <command> <command cooldown>

Command permissions: for add ess.cooldown.add for remove ess.cooldown.remove, or common permission ess.cooldown.modify.

Server failing to start

---- Minecraft Crash Report ----
// Who set us up the TNT?

Time: 3/22/20 9:26 PM
Description: Exception in server tick loop

java.lang.NoSuchMethodError: net.minecraft.server.MinecraftServer.getCommandManager()Lnet/minecraft/command/Commands;
at com.mairwunnx.projectessentials.cooldown.EntryPoint.onServerStarting(EntryPoint.kt:64) ~[?:1.15.2-1.0.1] {re:classloading}
at net.minecraftforge.eventbus.ASMEventHandler_135_EntryPoint_onServerStarting_FMLServerStartingEvent.invoke(.dynamic) ~[?:?] {}
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.0.0-milestone.1-service.jar:?] {}
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.0.0-milestone.1-service.jar:?] {}
at net.minecraftforge.fml.server.ServerLifecycleHooks.handleServerStarting(ServerLifecycleHooks.java:90) ~[?:?] {re:classloading}
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:242) ~[?:?] {re:classloading,pl:accesstransformer:B}
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:613) [?:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,pl:mixin:APP:assets/immersive_portals/immersive_portals.mixins.json:altius_world/MixinMinecraftServer_A,pl:mixin:APP:assets/immersive_portals/immersive_portals.mixins.json:MixinMinecraftServer,pl:mixin:APP:assets/immersive_portals/immersive_portals.mixins_ma.json:MixinMinecraftServer_MA,pl:mixin:A,pl:runtimedistcleaner:A}
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211] {}

A detailed walkthrough of the error, its code path and all known details is as follows:

-- System Details --
Details:
Minecraft Version: 1.15.2
Minecraft Version ID: 1.15.2
Operating System: Linux (amd64) version 3.10.0-957.21.2.el7.x86_64
Java Version: 1.8.0_211, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 2880704288 bytes (2747 MB) / 4105699328 bytes (3915 MB) up to 4105699328 bytes (3915 MB)
CPUs: 16
JVM Flags: 2 total; -Xmx4096M -Xms4096M
ModLauncher: 5.0.0-milestone.4+67+b1a340b
ModLauncher launch target: fmlserver
ModLauncher naming: srg
ModLauncher services:
/eventbus-2.0.0-milestone.1-service.jar eventbus PLUGINSERVICE
/forge_server.1.15.2-31.1.24.jar object_holder_definalize PLUGINSERVICE
/forge_server.1.15.2-31.1.24.jar runtime_enum_extender PLUGINSERVICE
/accesstransformers-2.0.4-shadowed.jar accesstransformer PLUGINSERVICE
/forge_server.1.15.2-31.1.24.jar capability_inject_definalize PLUGINSERVICE
/forge_server.1.15.2-31.1.24.jar runtimedistcleaner PLUGINSERVICE
/forge_server.1.15.2-31.1.24.jar fml TRANSFORMATIONSERVICE
/MixinBootstrap-1.0.2.jar mixinbootstrap TRANSFORMATIONSERVICE
/MixinBootstrap-1.0.2.jar mixin PLUGINSERVICE
/MixinBootstrap-1.0.2.jar mixinbootstrap PLUGINSERVICE
FML: 31.1
Forge: net.minecraftforge:31.1.24
FML Language Providers:
[email protected]
minecraft@1
[email protected]
Mod List:
NetherPortalFix_1.15.2-6.0.0.jar NetherPortalFix {[email protected] DONE}
DoggyTalents-1.15.2-1.15.2.3.jar Doggy Talents {[email protected] DONE}
mcw-windows-1.0.0-mc1.15.1_1.15.2.jar Macaw's Windows {[email protected] DONE}
SilentMechanisms-1.15.2-0.7.0+50.jar Silent's Mechanisms {[email protected]+50 DONE}
KleeSlabs_1.15.2-8.0.0.jar KleeSlabs {[email protected] DONE}
essentials-1.15.2-2.7.0.jar Essentials {[email protected] DONE}
BetterTitleScreen-1.15.2-1.9.jar Better Title Screen {[email protected] DONE}
XaerosWorldMap_1.5.5_Forge_1.15.2.jar Xaero's World Map {[email protected] DONE}
Controlling-6.1.1.jar Controlling {[email protected] DONE}
ReAuth-1.14-3.8.0.jar ReAuth {[email protected] DONE}
Placebo-1.15.2-3.0.2.jar Placebo {[email protected] DONE}
globaldatapack-1.15.2-1.3.jar Dark Roleplay - Global Datapacks {[email protected] DONE}
Powah-1.15.2-1.1.7.jar Powah {[email protected] DONE}
ftb-gui-library-1.0.0.14.jar FTB GUI Library {[email protected] DONE}
Bookshelf-1.15.2-5.1.4.jar Bookshelf {[email protected] DONE}
u_team_core-1.15.2-2.11.0.156.jar U Team Core {[email protected] DONE}
randompatches-1.15.2-1.21.1.1.jar RandomPatches {[email protected] DONE}
DarkUtilities-1.15.2-3.0.1.jar Dark Utilities {[email protected] DONE}
Apotheosis-1.15.2-3.0.6.jar Apotheosis {[email protected] DONE}
Morpheus-1.15.2-4.2.50.jar Morpheus {morpheus@version DONE}
MekanismGenerators-1.15.2-9.9.16.408.jar Mekanism: Generators {[email protected] DONE}
Hwyla-forge-1.10.8-B72_1.15.2.jar Waila {waila@version DONE}
refinedstorage-1.8.1.jar Refined Storage {[email protected] DONE}
corpse-1.15.2-1.0.2.jar Corpse {[email protected] DONE}
mcw-bridges-1.0.4fix-mc1.15.2.jar Macaw's Bridges {[email protected] DONE}
lightestlampsmod-3.3.0.jar Lightest Lamps {[email protected] DONE}
industrial-foregoing-1.15.2-2.2.2-28d4a81.jar Industrial Foregoing {[email protected] DONE}
useful_backpacks-1.15.2-1.9.4.63.jar Useful Backpacks {[email protected] DONE}
torchmaster-2.1.1-rc0.jar Torchmaster {[email protected] DONE}
embellishcraft-1.15.2-2.0.0.0.jar EmbellishCraft {[email protected] DONE}
BiomesOPlenty-1.15.2-10.0.0.345-universal.jar Biomes O' Plenty {[email protected] DONE}
phosphor-mc1.15.2-forge-0.4.2-rc1.jar Phosphor {[email protected] DONE}
Blur-1.1.0-1.jar Blur {[email protected] DONE}
valhelsia_structures-15.0.2.jar Valhelsia Structures {[email protected] DONE}
Lollipop-1.15.2-1.0.9.jar Lollipop {[email protected] DONE}
SilentGear-1.15.2-1.5.3+78.jar Silent Gear {[email protected]+78 DONE}
simplefarming-1.15.2-1.2.7.jar Simple Farming {[email protected] DONE}
SolarFluxReborn-1.15.2-15.0.0.jar Solar Flux Reborn {[email protected] DONE}
curios-FORGE-1.15.2-2.0.1.jar Curios API {[email protected] DONE}
extlights-1.8.jar Extended Lights {[email protected] DONE}
ClothConfig2-2.0.jar Cloth Config Forge v2 API {[email protected] DONE}
Project Essentials Cooldown-1.15.2-1.0.1.jar Project Essentials Cooldown {[email protected] DONE}
Project Essentials Chat-1.15.2-1.1.1.jar Project Essentials Chat {[email protected] DONE}
elevatorid-1.15.2-1.7.0.jar Elevator Mod {[email protected] DONE}
noRecipeBook_v1.5.2formc1.15.2.jar No Recipe Book {[email protected] DONE}
MekanismTools-1.15.2-9.9.16.408.jar Mekanism: Tools {[email protected] DONE}
mcw-roofs-1.0.2-mc1.15.2_1.15.1.jar Macaw's Roofs {[email protected] DONE}
ChunkNoGoByeBye-1.15.2-1.2.0.jar ChunkNoGoByeBye {[email protected] DONE}
furniture-7.0.0-pre16-1.15.1.jar MrCrayfish's Furniture Mod {[email protected] DONE}
curiouselytra-FORGE-1.15.2-2.0.jar Curious Elytra {[email protected] DONE}
cc-tweaked-1.15.2-1.86.2.jar CC: Tweaked {[email protected] DONE}
AI-Improvements-1.15.2-0.3.0.jar AI-Improvements {[email protected] DONE}
mcw-furnitures-1.0.0-mc1.15.2.jar Macaw's Furniture {[email protected] DONE}
cherishedworlds-FORGE-1.15.2-3.0.jar Cherished Worlds {[email protected] DONE}
CustomWindowTitle-1.15.2-v1.0.0.jar Custom Window Title {[email protected] DONE}
Project Essentials Spawn-1.15.2-1.1.0.jar Project Essentials Spawn {[email protected] DONE}
inventorysorter-1.15.2-17.0.0.jar Simple Inventory Sorter {[email protected] DONE}
TrashSlot_1.15.2-11.0.0.jar TrashSlot {[email protected] DONE}
torchslabmod-1.15.1_v1.5.jar Torch Slab Mod {[email protected] DONE}
EquipmentTooltips-1.15.2-1.4.0+11.jar Equipment Tooltips {[email protected]+11 DONE}
mining-helmet-1.15.2-1.0.7.jar Mining Helmet {[email protected] DONE}
Project Essentials Backup-1.15.2-1.0.1.jar Project Essentials Backup {[email protected] DONE}
jei-1.15.2-6.0.0.2.jar Just Enough Items {[email protected] DONE}
buzzierbees-1.2.jar Buzzier Bees {[email protected] DONE}
Mekanism-1.15.2-9.9.16.408.jar Mekanism {[email protected] DONE}
caelus-FORGE-1.15.2-2.0-beta1.jar Caelus API {[email protected] DONE}
reap-1.12.2.jar Reap Mod {[email protected] DONE}
Waystones_1.15.2-6.0.0.jar Waystones {[email protected] DONE}
comforts-FORGE-1.15.2-2.0.jar Comforts {[email protected] DONE}
NaturesCompass-1.15.2-1.8.5.jar Nature's Compass {[email protected] DONE}
FruitTrees-1.15.2-1.1.6.jar Fruit Trees {[email protected] DONE}
Kiwi-1.15.2-2.6.5.jar Kiwi {[email protected] DONE}
SimpleStorageNetwork-1.15.2-0.2.4.jar Simple Storage Network {[email protected] DONE}
SereneSeasons-1.15.2-3.0.0.68-universal.jar Serene Seasons {[email protected] DONE}
decorative_blocks_6c.jar Decorative Blocks {[email protected] DONE}
BotanyPots-1.15.2-2.0.1.jar BotanyPots {[email protected] DONE}
mcjtylib-1.15-4.0.2-alpha.jar McJtyLib {[email protected] DONE}
rftoolsbase-1.15-1.0.0-alpha.jar RFToolsBase {[email protected] DONE}
xnet-1.15-2.0.1-alpha.jar XNet {[email protected] DONE}
rftoolsstorage-1.15-1.0.2-alpha.jar RFToolsStorage {[email protected] DONE}
mapperbase-1.15.2-1.0.0.0.jar Mapper Base {[email protected] DONE}
ToastControl-1.15.2-3.0.1.jar Toast Control {[email protected] DONE}
immersive-portals-0.7(forMc1.15withForge).jar Immersive Portals {[email protected] DONE}
rftoolspower-1.15-2.0.1-alpha.jar RFToolsPower {[email protected] DONE}
extradisks-1.15.1-1.2.jar Extra Disks {[email protected] DONE}
ftb-chunks-1.0.1.2.jar FTB Chunks {[email protected] DONE}
forge-1.15.2-31.1.24-universal.jar Forge {[email protected] DONE}
Bountiful-3.0.0-1.15.2.jar Bountiful {[email protected] DONE}
Project Essentials Core-MOD-1.15.2-1.1.0.jar Project Essentials Core {[email protected] DONE}
ironchest-1.15.2-10.0.3.jar Iron Chests {[email protected] DONE}
CraftingTweaks_1.15.1-11.0.0.jar Crafting Tweaks {[email protected] DONE}
forge-1.15.2-31.1.24-server.jar Minecraft {[email protected] DONE}
cofh_core-1.15.2-0.3.2b.jar CoFH Core {[email protected] DONE}
ensorcellation-1.15.2-0.3.0b.jar Ensorcellation {[email protected] DONE}
rftoolsutility-1.15-2.0.0-alpha.jar RFToolsUtility {[email protected] DONE}
EnchantmentDescriptions-1.15.2-2.0.3.jar EnchantmentDescriptions {[email protected] DONE}
swingthroughgrass-1.15.2-1.4.0.jar SwingThroughGrass {[email protected] DONE}
MouseTweaks-2.13-mc1.15.1.jar Mouse Tweaks {[email protected] DONE}
ToolBelt-1.15.2-1.14.1.jar Tool Belt {[email protected] DONE}
titanium-1.15.2-2.3.7.jar Titanium {[email protected] DONE}
SilentLib-1.15.2-4.6.0+48.jar Silent Lib {[email protected]+48 DONE}
forbidden_arcanus-1.15.2-1.2-beta-3.jar Forbidden & Arcanus {[email protected] DONE}
archers_paradox-1.15.2-0.3.0b.jar Archer's Paradox {[email protected] DONE}
rftoolsbuilder-1.15-2.0.0-alpha.jar RFToolsBuilder {[email protected] DONE}
Project Essentials Warps-1.15.2-1.0.1.jar Project Essentials Warps {[email protected] DONE}
Xaeros_Minimap_20.5.1_Forge_1.15.2.jar Xaero's Minimap {[email protected] DONE}
Project Essentials Permissions-1.15.2-1.0.2.jar Project Essentials Permissions {[email protected] DONE}
Project Essentials-1.15.2-1.1.2.jar Project Essentials {[email protected] DONE}
FastWorkbench-1.15.1-3.0.0.jar FastWorkbench {[email protected] DONE}
StorageDrawers-1.15.2-7.0.2.jar Storage Drawers {[email protected] DONE}
DoubleSlabs-1.15-2.0.1.jar Double Slabs {[email protected] DONE}
Project Essentials Home-1.15.2-1.1.0.jar Project Essentials Home {[email protected] DONE}
tubesreloaded-1.15.2-1.3.0c.jar Tubes Reloaded {[email protected] DONE}
structurize-0.10.281-ALPHA.jar Structurize {[email protected] DONE}
minecolonies-0.10.768-ALPHA-universal.jar Minecolonies {[email protected] DONE}
FastFurnace-1.15.1-3.0.0.jar FastFurnace {[email protected] DONE}
AppleSkin-mc1.15.2-forge-1.0.13.jar AppleSkin {[email protected] DONE}
Aquaculture-1.15.2-2.0.11.jar Aquaculture 2 {[email protected] DONE}
refinedstorageaddons-0.6.1.jar Refined Storage Addons {[email protected] DONE}
CosmeticArmorReworked-1.15.2-v1a.jar CosmeticArmorReworked {[email protected] DONE}
DefaultOptions_1.15.2-11.0.1.jar Default Options {[email protected] DONE}
Kiwi Modules:
fruittrees:fruittrees
fruittrees:hybridization
kiwi:contributors
Player Count: 0 / 20; []
Data Packs: vanilla, mod:aiimprovements (incompatible), mod:apotheosis (incompatible), mod:appleskin (incompatible), mod:aquaculture, mod:archers_paradox (incompatible), mod:bettertitlescreen, mod:biomesoplenty, mod:blur (incompatible), mod:bookshelf (incompatible), mod:botanypots (incompatible), mod:bountiful (incompatible), mod:buzzierbees, mod:caelus (incompatible), mod:cfm (incompatible), mod:cherishedworlds (incompatible), mod:cloth-config2 (incompatible), mod:cofh_core (incompatible), mod:comforts (incompatible), mod:computercraft (incompatible), mod:controlling (incompatible), mod:corpse, mod:cosmeticarmorreworked (incompatible), mod:craftingtweaks (incompatible), mod:curios (incompatible), mod:curiouselytra (incompatible), mod:customwindowtitle, mod:darkutils (incompatible), mod:decorative_blocks, mod:defaultoptions (incompatible), mod:doggytalents (incompatible), mod:doubleslabs, mod:elevatorid, mod:embellishcraft (incompatible), mod:enchdesc (incompatible), mod:ensorcellation (incompatible), mod:equipmenttooltips (incompatible), mod:essentials (incompatible), mod:extlights (incompatible), mod:extradisks, mod:fastbench (incompatible), mod:fastfurnace (incompatible), mod:forbidden_arcanus (incompatible), mod:forge (incompatible), mod:fruittrees, mod:globaldatapack (incompatible), mod:immersive_portals (incompatible), mod:industrialforegoing (incompatible), mod:inventorysorter (incompatible), mod:ironchest, mod:jei (incompatible), mod:kiwi, mod:kleeslabs (incompatible), mod:lightestlamp, mod:lollipop (incompatible), mod:mapperbase, mod:mcjtylib (incompatible), mod:mcwbridges, mod:mcwfurnitures, mod:mcwroofs, mod:mcwwindows, mod:mekanism, mod:mekanismgenerators, mod:mekanismtools, mod:minecolonies (incompatible), mod:mining_helmet (incompatible), mod:morpheus (incompatible), mod:mousetweaks (incompatible), mod:naturescompass (incompatible), mod:netherportalfix (incompatible), mod:norecipebook, mod:phosphor, mod:placebo (incompatible), mod:powah (incompatible), mod:randompatches (incompatible), mod:reap, mod:reauth (incompatible), mod:refinedstorage (incompatible), mod:refinedstorageaddons (incompatible), mod:rftoolsbase (incompatible), mod:rftoolsbuilder (incompatible), mod:rftoolspower (incompatible), mod:rftoolsstorage (incompatible), mod:rftoolsutility (incompatible), mod:sereneseasons, mod:silentgear (incompatible), mod:silentlib (incompatible), mod:silents_mechanisms (incompatible), mod:simplefarming, mod:solarflux (incompatible), mod:storagedrawers (incompatible), mod:storagenetwork (incompatible), mod:structurize (incompatible), mod:swingthroughgrass (incompatible), mod:titanium (incompatible), mod:toastcontrol (incompatible), mod:toolbelt (incompatible), mod:torchmaster (incompatible), mod:torchslabmod, mod:trashslot (incompatible), mod:tubesreloaded (incompatible), mod:usefulbackpacks, mod:uteamcore, mod:valhelsia_structures (incompatible), mod:waila (incompatible), mod:waystones (incompatible), mod:xaerominimap, mod:xaeroworldmap, mod:xnet (incompatible), modpack:Valhelsia_CHUNKLOADER (incompatible), modpack:Valhelsia_RECIPE (incompatible), modpack:Valhelsia_SILENTGEAR (incompatible), mod:ftbchunks (incompatible), mod:ftbguilibrary (incompatible), mod:chunknogobyebye, mod:project_essentials, mod:project_essentials_backup, mod:project_essentials_chat, mod:project_essentials_cooldown, mod:project_essentials_core, mod:project_essentials_home, mod:project_essentials_permissions, mod:project_essentials_spawn, mod:project_essentials_warps
Is Modded: Definitely; Server brand changed to 'forge'
Type: Dedicated Server (map_server.txt)

Cooldown module make the minecraft crash

Describe the bug

  • The cooldown module crashed.

Steps to reproduce the behavior

    1. I have installed the core module, basic module and cooldown module to the client.
    1. Run the game then crashed.

Environment information

  • Project Essentials Permissions version: [I dont have installed this module]
  • Project Essentials Core version: [v2.1.0]
  • Project Essentials Cooldown version: [v1.0.2]
  • Project Essentials Modules version: [Core - v2.1.0; Basic- v2.0.1; Cooldown - v1.0.2]
  • Minecraft / Forge version: [1.15.2 / 31.2.47]

Additional context

  • When I just add core and basic module, it woked.

Log files. (latest.log and debug.log file in attachment)

latest.log
debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.