Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Feb 5, 2025
1 parent 2abe6f4 commit 7277998
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/main/java/minevalley/core/api/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ public static JavaPlugin getInstance() {
* @return Server object
*/
@Nonnull
public static Server getServer() {
return server.getServer();
public static Server server() {
return server.server();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/minevalley/core/api/CoreServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public interface CoreServer {
JavaPlugin getInstance();

@Nonnull
Server getServer();
Server server();

@Nonnull
BukkitTask runSyncTaskLater(long delay, @Nonnull Runnable runnable) throws IllegalArgumentException;
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/minevalley/core/api/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@
public interface Server extends MessageReceiver, SoundReceiver {

/**
* Gets a list of all online users.
* Get the server type.
*
* @return a list of all online users
* @return the server type
*/
@Nonnull
List<OnlineUser> onlineUsers();
ServerType type();

/**
* Get the server type.
* Gets a list of all online users.
*
* @return the server type
* @return a list of all online users
*/
@Nonnull
ServerType type();
List<OnlineUser> getOnlineUsers();

/**
* Gets whether the server is in development mode.
Expand Down

0 comments on commit 7277998

Please sign in to comment.