Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* The "getServerVersion" method from the "DisplayShopsAPI" interface …
Browse files Browse the repository at this point in the history
…now returns a double in the format XXX.X (For example, v1_17_R1 the returned value would be 117.1 for easier comparison).

* Removed the "isOffHandVersion" method from the "DisplayShopsAPI" interface.

Signed-off-by: xzot1k <[email protected]>
XZot1K committed Jun 18, 2021
1 parent 11c9c58 commit 33c4ef8
Showing 2 changed files with 9 additions and 18 deletions.
15 changes: 6 additions & 9 deletions src/xzot1k/plugins/ds/DisplayShops.java
Original file line number Diff line number Diff line change
@@ -31,10 +31,12 @@ public static DisplayShops getPluginInstance() {
}

@Override
public void onEnable() {}
public void onEnable() {
}

@Override
public void onDisable() {}
public void onDisable() {
}

@Override
public void log(Level level, String message) {
@@ -107,20 +109,15 @@ public Manager getManager() {
}

@Override
public String getServerVersion() {
return null;
public double getServerVersion() {
return 0;
}

@Override
public boolean isPaperSpigot() {
return false;
}

@Override
public boolean isOffHandVersion() {
return false;
}

@Override
public boolean isPrismaInstalled() {
return false;
12 changes: 3 additions & 9 deletions src/xzot1k/plugins/ds/DisplayShopsAPI.java
Original file line number Diff line number Diff line change
@@ -120,18 +120,14 @@ public interface DisplayShopsAPI {
// getters & setters

/**
* Returns the manager where most data and API methods are stored.
*
* @return The manager class.
* @return Returns the manager where most data and API methods are stored.
*/
Manager getManager();

/**
* Returns the server version.
*
* @return Server version.
* @return Server version in the format XXX.X where the decimal digit is the 'R' version.
*/
String getServerVersion();
double getServerVersion();

/**
* Checks if paper spigot methods exist.
@@ -154,8 +150,6 @@ public interface DisplayShopsAPI {
*/
void writeToLog(String text);

boolean isOffHandVersion();

boolean isPrismaInstalled();

Connection getDatabaseConnection();

0 comments on commit 33c4ef8

Please sign in to comment.