Skip to content

Commit

Permalink
o
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUmbrella committed Jul 7, 2022
1 parent cab2167 commit 343940c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# MGBRoleAward
Award a role to the Guilded user when he binds to a Minecraft player
## Commands
### `/mgbroleaward reload`
- **Description:** Reload the configuration file
- **Permission:** `mgbroleaward.reload` (default to admin)
### `/mgbroleaward check`
- **Description:** Force a complete check of all Guilded users' roles _(WIP)_
- **Permission:** `mgbroleaward.check` (default to admin)
### `/mgbroleaward help`
- **Description:** Display the help message
- **Permission:** none
4 changes: 2 additions & 2 deletions src/main/java/vip/floatationdevice/mgbroleaward/RoleUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void run()
}
catch(Exception e)
{
instance.getLogger().warning("Failed to give role to user with ID " + userId + ": " + e.getMessage() + " (try " + (i + 1) + "/" + maxRetries + ")");
instance.getLogger().warning("Failed to give role to user with ID " + userId + ": " + e.getMessage() + " (bound to player " + MGBridge.getPlayerName(uuid) + ", try " + (i + 1) + "/" + maxRetries + ")");
Bukkit.getScheduler().runTaskLater(instance, this, retryDelaySec * 20);
}
}
Expand Down Expand Up @@ -57,7 +57,7 @@ public void run()
}
catch(Exception e)
{
instance.getLogger().warning("Failed to remove role from user with ID " + userId + ": " + e.getMessage() + " (try " + (i + 1) + "/" + maxRetries + ")");
instance.getLogger().warning("Failed to remove role from user with ID " + userId + ": " + e.getMessage() + " (bound to player " + MGBridge.getPlayerName(uuid) + ", try " + (i + 1) + "/" + maxRetries + ")");
Bukkit.getScheduler().runTaskLater(instance, this, retryDelaySec * 20);
}
}
Expand Down

0 comments on commit 343940c

Please sign in to comment.