Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change from Classes to primitives #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Secure-Chests/src/me/HAklowner/SecureChests/Lock.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Lock {
private String owner;
private Map<String, Boolean> playerAccess;
private Map<String, Boolean> clanAccess;
private Boolean isPublic;
private boolean isPublic;
private Location lockLoc;
private int id;
//private int id;
Expand Down Expand Up @@ -307,7 +307,7 @@ public boolean addToDenyList(Clan clan) {
*/
}

public Integer getAccess(String player) {
public int getAccess(String player) {
//Return what access player has.

if (player.equals(getOwner())) {
Expand Down Expand Up @@ -345,7 +345,7 @@ public Integer getAccess(String player) {
return 0;
}

public Integer getAccess(Player player) {
public int getAccess(Player player) {
return getAccess(player.getName());
}

Expand All @@ -369,7 +369,7 @@ public void setID(int id) {
this.id = id;
}

public Boolean isLocked() {
public boolean isLocked() {
String lockname = getOwner();
if (lockname != null)
return true;
Expand Down