summaryrefslogtreecommitdiffstats
path: root/Server
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2020-03-31 13:25:44 +0200
committerGitHub <noreply@github.com>2020-03-31 13:25:44 +0200
commitb4060be3a45337c39ac5486accd19fc1ebf397fe (patch)
treecc798feb7a970710f7742bd96ab43d729571abdd /Server
parentLua API for spectating entities (#4518) (diff)
downloadcuberite-b4060be3a45337c39ac5486accd19fc1ebf397fe.tar
cuberite-b4060be3a45337c39ac5486accd19fc1ebf397fe.tar.gz
cuberite-b4060be3a45337c39ac5486accd19fc1ebf397fe.tar.bz2
cuberite-b4060be3a45337c39ac5486accd19fc1ebf397fe.tar.lz
cuberite-b4060be3a45337c39ac5486accd19fc1ebf397fe.tar.xz
cuberite-b4060be3a45337c39ac5486accd19fc1ebf397fe.tar.zst
cuberite-b4060be3a45337c39ac5486accd19fc1ebf397fe.zip
Diffstat (limited to '')
-rw-r--r--Server/Plugins/Debuggers/Debuggers.lua12
-rw-r--r--Server/Plugins/Debuggers/Info.lua9
2 files changed, 21 insertions, 0 deletions
diff --git a/Server/Plugins/Debuggers/Debuggers.lua b/Server/Plugins/Debuggers/Debuggers.lua
index c6af85482..7d12e130a 100644
--- a/Server/Plugins/Debuggers/Debuggers.lua
+++ b/Server/Plugins/Debuggers/Debuggers.lua
@@ -2679,6 +2679,18 @@ end
+function HandleBoomCmd(a_Split, a_Player)
+ local playerPos = a_Player:GetPosition()
+ a_Player:GetWorld():BroadcastParticleEffect("smoke", Vector3f(playerPos), Vector3f(), 0, 900)
+ a_Player:GetWorld():BroadcastSoundEffect("entity.firework.large_blast", playerPos, 1, 1)
+ a_Player:SendMessage("BOOM!")
+ return true
+end
+
+
+
+
+
function HandleTeamsCmd(a_Split, a_Player)
local Scoreboard = a_Player:GetWorld():GetScoreBoard()
diff --git a/Server/Plugins/Debuggers/Info.lua b/Server/Plugins/Debuggers/Info.lua
index b9eb0eeda..30dfd8528 100644
--- a/Server/Plugins/Debuggers/Info.lua
+++ b/Server/Plugins/Debuggers/Info.lua
@@ -22,12 +22,21 @@ g_PluginInfo =
Handler = HandleArrowCmd,
HelpString = "Creates an arrow going away from the player"
},
+
["/blk"] =
{
Permission = "debuggers",
Handler = HandleBlkCmd,
HelpString = "Gets info about the block you are looking at"
},
+
+ ["/boom"] =
+ {
+ Permission = "debuggers",
+ Handler = HandleBoomCmd,
+ HelpString = "Playes a sound and displays an effect at the player's position",
+ },
+
["/clientversion"] =
{
Permission = "debuggers",