Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
e244984
Back to work on commands
imDaniX Sep 18, 2023
5cb0a16
First iteration of creation subcommand
imDaniX Sep 21, 2023
b4ffd32
Fixed menu creation
imDaniX Sep 21, 2023
9ec7a12
Continue ActivatorSub
imDaniX Sep 30, 2023
3f969a6
Simplify activator info
imDaniX Oct 1, 2023
08712dd
Somewhat implemented ActivatorSub
imDaniX Oct 6, 2023
3d12b63
Some random improvements for activator sub
imDaniX Oct 9, 2023
8af87fa
Implement exec command
imDaniX Oct 9, 2023
71a86b2
Further implementation of /exec command
imDaniX Oct 10, 2023
e75f6d0
Some naming changes
imDaniX Oct 19, 2023
a3466c3
Start implementing loc subcommand
imDaniX Jan 10, 2024
f0add1d
Merge branch 'master' into feature/commands-v2
imDaniX Jan 22, 2024
290e4e5
Additional changes for merging
imDaniX Jan 22, 2024
ebc8b4b
Basic loc sub implementation
imDaniX Jan 23, 2024
469f4f6
Start of var sub
imDaniX Jan 27, 2024
394ef4a
Merge branch 'master' into feature/commands-v2
imDaniX Jan 31, 2024
50861e6
Merge branch 'master' into feature/commands-v2
imDaniX May 23, 2026
faee395
Fix compile
imDaniX May 23, 2026
070705e
Get rid of Commodore
imDaniX May 23, 2026
b7f237d
Some minor adjustments
imDaniX May 23, 2026
b8c98c5
Some minor adjustments
imDaniX May 25, 2026
3fd711f
Get rid of wrappers
imDaniX May 25, 2026
90b084b
Delete old nodes
imDaniX May 25, 2026
ac38599
Fix some formatting
imDaniX May 25, 2026
2b2f999
Move creation logic to other subs
imDaniX May 25, 2026
90149c1
Some cleanup duty
imDaniX May 25, 2026
096282a
Remove wrong exception methods
imDaniX Jun 3, 2026
5c3e577
Remove ensure for now
imDaniX Jun 3, 2026
2bb44a8
Registry argument
imDaniX Jun 16, 2026
11a2668
Merge branch 'master' into feature/commands-v2
imDaniX Jul 5, 2026
4f116b5
Merge branch 'master' into feature/commands-v2
imDaniX Jul 28, 2026
c1f0776
Improve help messages
imDaniX Jul 28, 2026
918c788
Improve location subs
imDaniX Jul 28, 2026
f0582c1
Implement more menu subs
imDaniX Jul 28, 2026
d1b13f2
Add menu creation from chests
imDaniX Jul 28, 2026
e39cca4
Cleanup variable sub and implement deletion
imDaniX Jul 28, 2026
b4f68e6
Implement list sub
imDaniX Jul 28, 2026
07b6386
Implement reload sub
imDaniX Jul 28, 2026
bcb87ff
Add permissions
imDaniX Jul 29, 2026
4069ed0
Some cleanup
imDaniX Jul 29, 2026
c657b6a
Make listings clickable
imDaniX Jul 29, 2026
ebb72ef
Minor tweaks
imDaniX Aug 23, 2026
5347fe3
Move impl to separate package
imDaniX Aug 23, 2026
a1b9084
Add some TODOs
imDaniX Aug 23, 2026
797ebb1
Small improvements
imDaniX Aug 23, 2026
5b4a458
Fix move location
imDaniX Aug 25, 2026
2ca80cc
Fix help
imDaniX Aug 25, 2026
dc22c8a
Fix consistency
imDaniX Aug 25, 2026
756015a
Fix some more help
imDaniX Aug 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
<id>glowingink</id>
<url>https://repo.glowing.ink/releases/</url>
</repository>
<repository>
<id>minecraft-repo</id>
<url>https://libraries.minecraft.net/</url>
</repository>
</repositories>

<dependencies>
Expand Down
16 changes: 13 additions & 3 deletions reactions/src/main/java/fun/reactions/ReActionsPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

package fun.reactions;

import fun.reactions.commands.Commander;
import fun.reactions.commands.plugin.impl.ExecCommand;
import fun.reactions.commands.plugin.impl.ReactionsCommand;
import fun.reactions.commands.user.UserCommandsManager;
import fun.reactions.events.listeners.BukkitListener;
import fun.reactions.events.listeners.MoveListener;
Expand All @@ -49,6 +50,7 @@
import fun.reactions.util.Shoot;
import fun.reactions.util.message.Messenger;
import fun.reactions.util.message.Msg;
import io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents;
import net.kyori.adventure.text.logger.slf4j.ComponentLogger;
import org.bstats.bukkit.Metrics;
import org.bstats.charts.SimplePie;
Expand All @@ -57,6 +59,8 @@
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.NotNull;

import java.util.List;

public class ReActionsPlugin extends JavaPlugin implements ReActions.Platform {
private ActivitiesRegistry activitiesRegistry;
private ActivatorTypesRegistry typesRegistry;
Expand Down Expand Up @@ -108,7 +112,7 @@ public void onLoad() {

@Override
public void onEnable() {
// TODO Why...
// TODO god why
Msg.init("ReActions", new Messenger(this), Cfg.language, Cfg.debugMode, Cfg.languageSave);

this.savingManager = new SavingManager(this);
Expand All @@ -118,7 +122,6 @@ public void onEnable() {

getDataFolder().mkdirs();

Commander.init(this);
TimersManager.init();
CooldownManager.load();
if (!Cfg.playerSelfVarFile) variablesManager.load();
Expand All @@ -135,6 +138,13 @@ public void onEnable() {
MoveListener.init();
Metrics metrics = new Metrics(this, 19363);
metrics.addCustomChart(new SimplePie("placeholders_manager", () -> Cfg.modernPlaceholders ? "Modern" : "Legacy"));

this.getLifecycleManager().registerEventHandler(LifecycleEvents.COMMANDS, commands -> {
var registrar = commands.registrar();
registrar.register(new ReactionsCommand(this).asNode(), List.of("rea", "ra"));
registrar.register(new ExecCommand(this).asNode());
});

getServer().getScheduler().runTask(this, () -> {
modulesRegistry.registerPluginDepended();
activatorsManager.loadGroup("", false);
Expand Down
69 changes: 0 additions & 69 deletions reactions/src/main/java/fun/reactions/commands/Cmd.java

This file was deleted.

100 changes: 0 additions & 100 deletions reactions/src/main/java/fun/reactions/commands/CmdAdd.java

This file was deleted.

46 changes: 0 additions & 46 deletions reactions/src/main/java/fun/reactions/commands/CmdCheck.java

This file was deleted.

36 changes: 0 additions & 36 deletions reactions/src/main/java/fun/reactions/commands/CmdClear.java

This file was deleted.

72 changes: 0 additions & 72 deletions reactions/src/main/java/fun/reactions/commands/CmdCopy.java

This file was deleted.

Loading