Skip to content

Commit

Permalink
Update from last fork
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioZumbi12 committed Jan 9, 2017
1 parent cc70ceb commit a7a5e85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/main/java/br/net/fabiozumbi12/rankupper/PermsAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ public List<String> getGroups(User player){
}
public String getHighestGroup(User player){
String best = "";
int beb = -1;
ArrayList<String> prevPerms = new ArrayList<>();
int beb = -1;
for (Subject sub:player.getParents()){
if (sub.getContainingCollection().equals(getGroups()) && (sub.getIdentifier() != null)){
System.out.println(sub.getIdentifier() + " - " + sub.getParents().size());
Expand Down
10 changes: 4 additions & 6 deletions src/main/java/br/net/fabiozumbi12/rankupper/RUCommands.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package br.net.fabiozumbi12.rankupper;

import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;

import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
import org.spongepowered.api.command.CommandSource;
Expand All @@ -10,11 +14,6 @@
import org.spongepowered.api.entity.living.player.User;
import org.spongepowered.api.service.economy.account.UniqueAccount;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;

public class RUCommands implements CommandExecutor{

private void ExecuteTopCount(CommandSource p) {
Expand Down Expand Up @@ -46,7 +45,6 @@ private void ExecuteTopCount(CommandSource p) {

private void SendCheckMessage(CommandSource sender, User playerToCheck) {
int time = RankUpper.cfgs.getPlayerTime(RankUpper.cfgs.getPlayerKey(playerToCheck));
List<String> pgroups = RankUpper.perms.getGroups(playerToCheck);
String pgroup = RankUpper.perms.getHighestGroup(playerToCheck);
if (pgroup == null){
RULang.sendMessage(sender, RULang.get("commands.check.youplayed").replace("{time}", RUUtil.timeDescript(time)).replace("{group}", "None"));
Expand Down

0 comments on commit a7a5e85

Please sign in to comment.