Skip to content

Commit

Permalink
Merge branch 'master' into feature/uuid_support
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed Dec 10, 2023
2 parents 7c7d0ab + 8bad2c4 commit 3ed3ad7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,19 @@ import org.bukkit.plugin.java.JavaPlugin;

public class ExamplePlugin extends JavaPlugin {

private static final Logger log = Logger.getLogger("Minecraft");
private static Economy econ = null;
private static Permission perms = null;
private static Chat chat = null;

@Override
public void onDisable() {
log.info(String.format("[%s] Disabled Version %s", getDescription().getName(), getDescription().getVersion()));
getLogger().info(String.format("[%s] Disabled Version %s", getDescription().getName(), getDescription().getVersion()));
}

@Override
public void onEnable() {
if (!setupEconomy() ) {
log.severe(String.format("[%s] - Disabled due to no Vault dependency found!", getDescription().getName()));
getLogger().severe(String.format("[%s] - Disabled due to no Vault dependency found!", getDescription().getName()));
getServer().getPluginManager().disablePlugin(this);
return;
}
Expand Down Expand Up @@ -129,7 +128,7 @@ public class ExamplePlugin extends JavaPlugin {

public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
if(!(sender instanceof Player)) {
log.info("Only players are supported for this Example Plugin, but you should not do this!!!");
getLogger().info("Only players are supported for this Example Plugin, but you should not do this!!!");
return true;
}

Expand Down
9 changes: 2 additions & 7 deletions src/main/java/net/milkbowl/vault/economy/EconomyResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ public EconomyResponse(double amount, double balance, ResponseType type, String
* @return Value
*/
public boolean transactionSuccess() {
switch (type) {
case SUCCESS:
return true;
default:
return false;
}
return type == ResponseType.SUCCESS;
}
}
}

0 comments on commit 3ed3ad7

Please sign in to comment.