Fix incorrect event argument in UpdateRank
This commit is contained in:
parent
f92eae067f
commit
b314744b6d
@ -45,7 +45,7 @@ public class CoreClient
|
||||
|
||||
public UUID getUniqueId()
|
||||
{
|
||||
return this._uuid;
|
||||
return _uuid;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
@ -134,20 +134,20 @@ public class CoreClient
|
||||
|
||||
public void undisguise()
|
||||
{
|
||||
this._disguisedName = null;
|
||||
this._disguisedSkin = null;
|
||||
this._disguisedRank = null;
|
||||
this._disguisedUUID = null;
|
||||
_disguisedName = null;
|
||||
_disguisedSkin = null;
|
||||
_disguisedRank = null;
|
||||
_disguisedUUID = null;
|
||||
}
|
||||
|
||||
public String getDisguisedAs()
|
||||
{
|
||||
return this._disguisedName;
|
||||
return _disguisedName;
|
||||
}
|
||||
|
||||
public String getDisguisedSkin()
|
||||
{
|
||||
return this._disguisedSkin;
|
||||
return _disguisedSkin;
|
||||
}
|
||||
|
||||
public Rank getDisguisedRank()
|
||||
@ -157,32 +157,32 @@ public class CoreClient
|
||||
|
||||
public UUID getDisguisedAsUUID()
|
||||
{
|
||||
return this._disguisedUUID;
|
||||
return _disguisedUUID;
|
||||
}
|
||||
|
||||
public boolean isDisguised()
|
||||
{
|
||||
if (this._disguisedName == null)
|
||||
if (_disguisedName == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return !this._name.equalsIgnoreCase(this._disguisedName);
|
||||
return !_name.equalsIgnoreCase(_disguisedName);
|
||||
}
|
||||
|
||||
public void disguise(String name, UUID uuid, Rank rank)
|
||||
{
|
||||
this._disguisedName = name;
|
||||
this._disguisedUUID = uuid;
|
||||
this._disguisedRank = rank;
|
||||
_disguisedName = name;
|
||||
_disguisedUUID = uuid;
|
||||
_disguisedRank = rank;
|
||||
}
|
||||
|
||||
public Rank getRealOrDisguisedRank()
|
||||
{
|
||||
if (this._disguisedRank != null)
|
||||
if (_disguisedRank != null)
|
||||
{
|
||||
return this._disguisedRank;
|
||||
return _disguisedRank;
|
||||
}
|
||||
return this.GetRank();
|
||||
return GetRank();
|
||||
}
|
||||
|
||||
public void setNetworkSessionLoginTime(long loginTime)
|
||||
|
@ -92,7 +92,7 @@ public class UpdateRank extends CommandBase<CoreClientManager>
|
||||
if (Plugin.Get(p).GetRank() != Plugin.Get(p).GetRank(true))
|
||||
Plugin.Get(p).resetTemp();
|
||||
|
||||
OnlineRankUpdateEvent event = new OnlineRankUpdateEvent(caller, Plugin.Get(caller).GetRank(), rank, true);
|
||||
OnlineRankUpdateEvent event = new OnlineRankUpdateEvent(caller, Plugin.Get(caller).GetRank(), rank, false);
|
||||
Plugin.Get(p).SetRank(rank, false);
|
||||
Bukkit.getPluginManager().callEvent(event);
|
||||
|
||||
|
@ -63,7 +63,7 @@ public abstract class CommandBase<PluginType extends MiniPlugin> implements ICom
|
||||
|
||||
public void setRequiredRank(Rank rank)
|
||||
{
|
||||
this._requiredRank = rank;
|
||||
_requiredRank = rank;
|
||||
}
|
||||
|
||||
public Rank[] GetSpecificRanks()
|
||||
|
Loading…
Reference in New Issue
Block a user