Ignore self when using checkup (#38)

dynmap_link
Etzelia 2019-10-03 23:23:52 +02:00 committed by Gitea
parent 253402f4fe
commit 8d0e30cfa3
7 changed files with 38 additions and 6 deletions

View File

@ -12,4 +12,5 @@ Changelogs
v1.4 <v1.4>
v1.5 <v1.5>
v1.6 <v1.6>
v1.7 <v1.7>
v1.7 <v1.7>
v1.8 <v1.8>

View File

@ -12,4 +12,5 @@ Additions
.. _World View Distance Overrides: https://git.etztech.xyz/24CarrotCraft/QoL/commit/81a2fb3fa0e16ebbd4363074b17447be1d5b950e
Bug Fixes
---------
---------
None

View File

@ -0,0 +1,24 @@
.. include:: ../common.rst
.. _qol_v1.8:
QoL v1.8
========
Additions
---------
* `Checkup Command`_ - Allows a user to start a checkup, teleporting to each online player
* `Discord Syntax`_ - Allows a user to use Discord (markdown) syntax for chat formatting
``_italic_`` |br|
``*italic*`` |br|
``__underline__`` |br|
``**bold**`` |br|
``~~strikethrough~~``
.. _Checkup Command: https://git.etztech.xyz/24CarrotCraft/QoL/pulls/33
.. _Discord Syntax: https://git.etztech.xyz/24CarrotCraft/QoL/pulls/36
Bug Fixes
---------
None

View File

@ -41,4 +41,6 @@ Alias ``/names`` and ``/name``
``/deathmute <name>`` toggles death messages on or off for a player.
``/checkup <start|next|stop>`` Start a checkup, teleporting to all online players.

View File

@ -38,8 +38,12 @@ Permissions
``qol.timeout.*`` - Wildcard permission for Timeout
``qol.karattrophy`` - Ability to use the Karat Trophy Command
``qol.karattrophy`` - Ability to use the Karat Trophy command
``qol.deathmute`` - Ability to use the Death Mute command
``qol.griefalert`` - Receive GriefAlert alerts
``qol.griefalert`` - Receive GriefAlert alerts
``qol.checkup`` - Ability to use the Checkup command
``qol.discord`` - Use Discord (markdown) syntax for chat formatting

View File

@ -3,7 +3,7 @@
<groupId>xyz.etztech</groupId>
<artifactId>QoL</artifactId>
<!-- Version is used in plugin.yml -->
<version>1.7</version>
<version>1.8</version>
<packaging>jar</packaging>
<!-- Plugin Information -->

View File

@ -107,7 +107,7 @@ public class CheckupCommand implements CommandExecutor {
while (checkup.hasNext()) {
// Loop until next player is online
next = checkup.next();
if (next.isOnline()) {
if (next.isOnline() && player.getUniqueId() != next.getUniqueId()) {
player.teleport(next.getLocation());
EtzTechUtil.sms(player, ChatColor.GREEN + "You are now checking on " + ChatColor.YELLOW + next.getName());
checkups.put(player.getUniqueId(), checkup);