Skip to content

Commit

Permalink
Added configurable messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieS1211 committed Mar 25, 2018
1 parent cc3014a commit 81d9862
Show file tree
Hide file tree
Showing 6 changed files with 681 additions and 168 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
defaultTasks 'build', 'shadowJar'

group = 'io.github.jamies1211.minereset'
version = '1.0.8(BETA2)'
version = '1.0.9'
description = 'MineReset'
sourceCompatibility = 1.8

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.jamies1211.minereset.Commands.ConfigCommands;

import com.github.jamies1211.minereset.Config.GeneralDataConfig;
import com.github.jamies1211.minereset.Config.MessageConfig;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
Expand All @@ -19,6 +20,8 @@ public class ConfigReload implements CommandExecutor {
public CommandResult execute(CommandSource src, CommandContext args) throws CommandException {

GeneralDataConfig.getConfigFromInteraction().load();
MessageConfig.getConfig().load();
MessageConfig.getConfig().refreshData();
src.sendMessage(TextSerializers.FORMATTING_CODE.deserialize(minePrefix + configReloaded));

return CommandResult.success();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.jamies1211.minereset.Commands.ConfigCommands;

import com.github.jamies1211.minereset.Config.GeneralDataConfig;
import com.github.jamies1211.minereset.Config.MessageConfig;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
Expand All @@ -19,6 +20,7 @@ public class ConfigSave implements CommandExecutor {
public CommandResult execute(CommandSource src, CommandContext args) throws CommandException {

GeneralDataConfig.getConfigFromInteraction().save();
MessageConfig.getConfig().save();
src.sendMessage(TextSerializers.FORMATTING_CODE.deserialize(minePrefix + configSaved));

return CommandResult.success();
Expand Down
Loading

0 comments on commit 81d9862

Please sign in to comment.