Skip to content

Commit

Permalink
add: documentation for config file
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurawald committed Jun 6, 2024
1 parent 0bc0d2a commit 9e4ceea
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 35 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.HashMap;

@SuppressWarnings("InnerClassMayBeStatic")
public class ChatModel extends AbstractModel{
public class ChatModel {

public Format format = new Format();

Expand Down
75 changes: 51 additions & 24 deletions src/main/java/io/github/sakurawald/config/model/ConfigModel.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import io.github.sakurawald.module.initializer.head.HeadModule;

public class HeadModel extends AbstractModel {
public class HeadModel {
public HeadModule.EconomyType economyType = HeadModule.EconomyType.ITEM;
public String costType = "minecraft:emerald_block";
public int costAmount = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.HashMap;
import java.util.Map;

public class HomeModel extends AbstractModel {
public class HomeModel {

public Map<String, Map<String, Position>> homes = new HashMap<>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.util.HashSet;

public class PvPModel extends AbstractModel {
public class PvPModel {

public HashSet<String> whitelist = new HashSet<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.ArrayList;
import java.util.List;

public class SchedulerModel extends AbstractModel {
public class SchedulerModel {

public List<ScheduleJob> scheduleJobs = new ArrayList<>() {
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

import java.util.HashMap;

public class SeenModel extends AbstractModel {
public class SeenModel {
public HashMap<String, Long> player2seen = new HashMap<>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import java.util.concurrent.CopyOnWriteArrayList;

public class WorksModel extends AbstractModel {
public class WorksModel {

public CopyOnWriteArrayList<Work> works = new CopyOnWriteArrayList<>();

Expand Down

0 comments on commit 9e4ceea

Please sign in to comment.