Skip to content

Commit

Permalink
minor cleanup/updating
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 6, 2020
1 parent e1b4857 commit 5540c06
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 The Denizen Script Team
Copyright (c) 2019-2020 The Denizen Script Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -40,7 +40,7 @@ Copyright (C) 2014-2019 The Denizen Script Team, All Rights Reserved.

The MIT License (MIT)

Copyright (c) 2019 The Denizen Script Team
Copyright (c) 2019-2020 The Denizen Script Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Expand Up @@ -5,7 +5,6 @@
import com.denizenscript.depenizen.bukkit.bungee.packets.out.ControlsProxyCommandPacketOut;
import com.denizenscript.depenizen.bukkit.bungee.packets.out.ControlsProxyPingPacketOut;
import com.denizenscript.depenizen.bukkit.bungee.packets.out.KeepAlivePacketOut;
import com.denizenscript.depenizen.bukkit.bungee.packets.out.MyInfoPacketOut;
import com.denizenscript.depenizen.bukkit.commands.bungee.BungeeCommand;
import com.denizenscript.depenizen.bukkit.commands.bungee.BungeeExecuteCommand;
import com.denizenscript.depenizen.bukkit.commands.bungee.BungeeRunCommand;
Expand Down
Expand Up @@ -52,8 +52,7 @@ private FactionsPlayerProperties(PlayerTag object) {
}

public MPlayer getMPlayer() {
MPlayer mplayer = MPlayer.get(IdUtil.getId(player.getOfflinePlayer().getUniqueId()));
return mplayer;
return MPlayer.get(IdUtil.getId(player.getOfflinePlayer().getUniqueId()));
}

PlayerTag player;
Expand Down
Expand Up @@ -85,10 +85,7 @@ public String getAttribute(Attribute attribute) {
// Returns the names of quests the player has completed.
// -->
if (attribute.startsWith("completed_names")) {
ListTag list = new ListTag();
for (String quest : quester.getCompletedQuests()) {
list.add(quest);
}
ListTag list = new ListTag(quester.getCompletedQuests());
return list.getAttribute(attribute.fulfill(1));
}

Expand Down

0 comments on commit 5540c06

Please sign in to comment.