forked from Minecraft/QoL
commit
7001a136c6
|
@ -9,3 +9,4 @@ Changelogs
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
v1.3 <v1.3>
|
v1.3 <v1.3>
|
||||||
|
v1.4 <v1.4>
|
|
@ -0,0 +1,20 @@
|
||||||
|
.. include:: ../common.rst
|
||||||
|
|
||||||
|
.. _qol_v1.4:
|
||||||
|
|
||||||
|
QoL v1.4
|
||||||
|
========
|
||||||
|
|
||||||
|
Additions
|
||||||
|
---------
|
||||||
|
* `Death Mute Command`_ - ``/deathmute <name>`` mutes death messages from a player until a sever restart.
|
||||||
|
* `24 Karat Trophy Command`_ ``/karattrophy <name>`` awards the player the 24 Karat Trophy advancement.
|
||||||
|
* `Spec-Dynmap Message`_ - A message is now displayed when the user is hidden on Dynmap after using /spec.
|
||||||
|
|
||||||
|
.. _Death Mute Command: https://git.etztech.xyz/Etzelia/QoL/issues/9
|
||||||
|
.. _24 Karat Trophy Command: https://git.etztech.xyz/Etzelia/QoL/issues/16
|
||||||
|
.. _Spec-Dynmap Message`_: https://git.etztech.xyz/ZeroHD/QoL/commit/6c5c20960b782d6b922d31859baca01132c63b9f
|
||||||
|
|
||||||
|
Bug Fixes
|
||||||
|
---------
|
||||||
|
None
|
|
@ -36,3 +36,9 @@ Alias ``/names`` and ``/name``
|
||||||
``/whitelist <on|off|true|false|>`` - Turns Whitelist mode on or off. When in Whitelist mode, no one can connect unless they have the permission node.
|
``/whitelist <on|off|true|false|>`` - Turns Whitelist mode on or off. When in Whitelist mode, no one can connect unless they have the permission node.
|
||||||
|
|
||||||
``/timeout <on|off|true|false|>`` - Turns Timeout mode on or off. When in Timeout mode, no one can chat unless they have the permission node.
|
``/timeout <on|off|true|false|>`` - Turns Timeout mode on or off. When in Timeout mode, no one can chat unless they have the permission node.
|
||||||
|
|
||||||
|
``/karattrophy <name>`` awards the player the 24 Karat Trophy Advancement.
|
||||||
|
|
||||||
|
``/deathmute <name>`` mutes death messages from a player until a sever restart.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,5 @@ QoL provides a way to monitor your TPS and send an alert to a Discord webhook wh
|
||||||
Auto Dynmap Hide
|
Auto Dynmap Hide
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
If Dynmap is detected on the server, QoL will hide a user on the dynmap when they spec. When they come out of
|
If Dynmap is detected on the server, QoL will hide a user on the dynmap when they spec. When they come out of spec, their previous visibility state will be restored.
|
||||||
spec, their previous visibility state will be restored.
|
|
||||||
|
|
||||||
|
|
|
@ -37,3 +37,7 @@ Permissions
|
||||||
``qol.timeout.command`` - Ability to use the Timeout command
|
``qol.timeout.command`` - Ability to use the Timeout command
|
||||||
|
|
||||||
``qol.timeout.*`` - Wildcard permission for Timeout
|
``qol.timeout.*`` - Wildcard permission for Timeout
|
||||||
|
|
||||||
|
``qol.karattrophy`` - Ability to use the Karat Trophy Command
|
||||||
|
|
||||||
|
``qol.deathmute`` - Ability to use the Death Mute command
|
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
||||||
<groupId>xyz.etztech</groupId>
|
<groupId>xyz.etztech</groupId>
|
||||||
<artifactId>QoL</artifactId>
|
<artifactId>QoL</artifactId>
|
||||||
<!-- Version is used in plugin.yml -->
|
<!-- Version is used in plugin.yml -->
|
||||||
<version>1.3</version>
|
<version>1.4</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<!-- Plugin Information -->
|
<!-- Plugin Information -->
|
||||||
|
|
|
@ -53,19 +53,28 @@ public class CommandPreprocessListener implements Listener {
|
||||||
|
|
||||||
// Spec dynmap hide
|
// Spec dynmap hide
|
||||||
if (base.equals("spec") && sender.hasPermission("SafeSpectate.spectate") && dynmap != null) {
|
if (base.equals("spec") && sender.hasPermission("SafeSpectate.spectate") && dynmap != null) {
|
||||||
|
String message;
|
||||||
boolean visibleStatus;
|
boolean visibleStatus;
|
||||||
if (sender.getGameMode() != GameMode.SPECTATOR){
|
if (sender.getGameMode() != GameMode.SPECTATOR){
|
||||||
dynmapVisibleStatusMap.put(sender.getUniqueId(), dynmap.getPlayerVisbility(sender.getName()));
|
dynmapVisibleStatusMap.put(sender.getUniqueId(), dynmap.getPlayerVisbility(sender.getName()));
|
||||||
visibleStatus = false;
|
visibleStatus = false;
|
||||||
|
|
||||||
|
message = "You are now being hidden Dynmap.";
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (dynmapVisibleStatusMap.containsKey(sender.getUniqueId())){
|
else if (dynmapVisibleStatusMap.containsKey(sender.getUniqueId())){
|
||||||
visibleStatus = dynmapVisibleStatusMap.remove(sender.getUniqueId());
|
visibleStatus = dynmapVisibleStatusMap.remove(sender.getUniqueId());
|
||||||
|
|
||||||
|
String status = ((visibleStatus) ? "shown" : "hidden");
|
||||||
|
message = "Your " + status + " status has been restored on Dynmap.";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
message = "You are now visible on the Dynmap.";
|
||||||
visibleStatus = true;
|
visibleStatus = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
dynmap.setPlayerVisiblity(sender.getDisplayName(), visibleStatus);
|
sender.spigot().sendMessage(new TextComponent(ChatColor.GREEN + message));
|
||||||
|
dynmap.setPlayerVisiblity(sender.getName(), visibleStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Spec TP confirmation
|
// Spec TP confirmation
|
||||||
|
|
|
@ -75,7 +75,7 @@ permissions:
|
||||||
description: Ability to use the Death Mute command
|
description: Ability to use the Death Mute command
|
||||||
default: op
|
default: op
|
||||||
qol.karattrophy:
|
qol.karattrophy:
|
||||||
description: to use the Karat Trophy Command
|
description: Ability to use the Karat Trophy Command
|
||||||
default: op
|
default: op
|
||||||
qol.auditable:
|
qol.auditable:
|
||||||
description: Audits command usage
|
description: Audits command usage
|
||||||
|
|
Loading…
Reference in New Issue