Skip to content

Commit

Permalink
Fixed NPE & bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
SelfMadeSystem committed Jan 10, 2022
1 parent abcb991 commit 01f13a6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,14 @@
public abstract class CommandManager {
protected List<SCommand> commands = new ArrayList<>();

protected CommandManager() {
ConfigManager.getInstance().setup(SCommand.config);
}

protected void registerCommand(SCommand command) {
commands.add(command);
}

protected abstract @NotNull String getPrefix();

public void registerCommands() {
ConfigManager.getInstance().setup(SCommand.config);
registerCommand(new ScriptCommand(this));
registerCommand(new ShellCommand(this));
}
Expand Down
2 changes: 1 addition & 1 deletion BungeeCord/src/main/resources/bungee.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ServerScripter
version: '0.3.0'
version: '0.3.1'
main: uwu.smsgamer.serverscripter.bungee.BungeeServerScripter
author: Sms_Gamer_3808
description: Scripting plugin for BungeeCord.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.io.File;
import java.util.Collections;

@Plugin(name = "ServerScripter", version = "0.3.0")
@Plugin(name = "ServerScripter", version = "0.3.1")
@Description("Scripting plugin for Spigot.")
@Author("Sms_Gamer_3808")
@SoftDependency("PacketEvents")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@Plugin(
id = "server_scripter",
name = "ServerScripter",
version = "0.3.0",
version = "0.3.1",
description = "Scripting plugin for Velocity.",
authors = {"Sms_Gamer_3808"}
)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'uwu.smsgamer'
version '0.3.0'
version '0.3.1'

subprojects {
group = parent.group
Expand Down

0 comments on commit 01f13a6

Please sign in to comment.