Package net.dzikoysk.funnyguilds.user
Class FakeUserProfile
java.lang.Object
net.dzikoysk.funnyguilds.user.FakeUserProfile
- All Implemented Interfaces:
UserProfile
- Direct Known Subclasses:
NPCUserProfile
-
Constructor Summary
ConstructorsConstructorDescriptionFakeUserProfile(boolean online, boolean vanished, int ping) FakeUserProfile(boolean online, boolean vanished, int ping, String... permissions) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPermission(String permission) voidintgetPing()booleanhasPermission(String permission) booleanisOnline()booleanvoidstatic FakeUserProfileoffline()static FakeUserProfileonline()static FakeUserProfileonline(int ping) voidrefresh()voidremovePermission(String permission) voidsendMessage(String message) voidstatic FakeUserProfilevanished()
-
Constructor Details
-
FakeUserProfile
public FakeUserProfile(boolean online, boolean vanished, int ping) -
FakeUserProfile
-
-
Method Details
-
getPosition
- Specified by:
getPositionin interfaceUserProfile
-
isOnline
public boolean isOnline()- Specified by:
isOnlinein interfaceUserProfile
-
isVanished
public boolean isVanished()- Specified by:
isVanishedin interfaceUserProfile
-
getPing
public int getPing()- Specified by:
getPingin interfaceUserProfile
-
sendMessage
- Specified by:
sendMessagein interfaceUserProfile
-
kick
- Specified by:
kickin interfaceUserProfile
-
refresh
public void refresh()- Specified by:
refreshin interfaceUserProfile
-
hasPermission
- Specified by:
hasPermissionin interfaceUserProfile
-
addPermission
-
removePermission
-
clearPermissions
public void clearPermissions() -
online
-
online
-
offline
-
vanished
-