-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from jmanpenilla/master
Add support for Purpur AFK API
- Loading branch information
Showing
6 changed files
with
45 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
![SmoothSleep](https://proxy.spigotmc.org/18a737d3282325cbb9a291e2a1b8c74fb4c98660?url=https%3A%2F%2Fi.imgur.com%2FNDOrwZO.jpg) | ||
|
||
|
||
For more information and to download, visit the plugin's page on the Spigot website: | ||
|
||
https://www.spigotmc.org/resources/smoothsleep.32043/ | ||
|
||
--- | ||
|
||
Please post bug reports and feature requests in the Spigot discussion thread! | ||
|
||
https://www.spigotmc.org/threads/smoothsleep.194674/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/com/luffbox/smoothsleep/lib/hooks/PurpurUserHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.luffbox.smoothsleep.lib.hooks; | ||
|
||
import org.bukkit.entity.Player; | ||
|
||
public class PurpurUserHelper implements UserHelper { | ||
@Override | ||
public String getNickname(Player p) { return p.getDisplayName(); } | ||
|
||
@Override | ||
public boolean isAfk(Player p) { return p.isAfk(); } | ||
|
||
@Override | ||
public boolean isVanished(Player p) { return false; } | ||
} |