' +
+ '
' +
'' +
'' +
+ '' +
+ '' +
+ '
' +
+ '
' +
'' +
'' +
'
' +
@@ -108,17 +112,32 @@ function PlayerInfoPage(params, container) {
var pname = document.getElementById('pi-username');
document.getElementById('pi-kill').addEventListener('click', function () {
- if (confirm('Kill ' + pname.textContent + '? (plugin required)')) {
- Rcon.command('kill ' + userid);
+ if (confirm('Kill ' + pname.textContent + '?')) {
+ Rcon.command('global.kill ' + userid);
}
});
document.getElementById('pi-heal').addEventListener('click', function () {
- if (confirm('Heal ' + pname.textContent + '? (plugin required)')) {
+ if (confirm('Heal ' + pname.textContent + '?')) {
Rcon.command('heal ' + userid);
}
});
+ document.getElementById('pi-give').addEventListener('click', function () {
+ var item = prompt('Item shortname (e.g. wood, rifle.ak):', '');
+ if (!item) return;
+ var amount = prompt('Amount (default 1):', '1');
+ if (amount === null) return;
+ Rcon.command('inventory.giveto ' + userid + ' ' + item.trim() + ' ' + (parseInt(amount) || 1));
+ });
+
+ document.getElementById('pi-teleport').addEventListener('click', function () {
+ var target = prompt('Teleport ' + pname.textContent + ' to SteamID:', '');
+ if (target) {
+ Rcon.command('entity.teleport ' + userid + ' ' + target.trim());
+ }
+ });
+
document.getElementById('pi-mod').addEventListener('click', function () {
if (confirm('Promote ' + pname.textContent + ' to Moderator?')) {
Rcon.command('moderatorid ' + userid + ' ' + pname.textContent);
diff --git a/rcon.css b/rcon.css
index eb0870c..6272185 100644
--- a/rcon.css
+++ b/rcon.css
@@ -61,6 +61,18 @@ a:hover { color: #fff; text-decoration: none; }
color: rgba(255,255,255,0.85);
}
+/* Purple outline button */
+.btn-outline-purple {
+ --bs-btn-color: #a78bfa;
+ --bs-btn-border-color: #a78bfa;
+ --bs-btn-hover-bg: #a78bfa;
+ --bs-btn-hover-border-color: #a78bfa;
+ --bs-btn-hover-color: #fff;
+ --bs-btn-active-bg: #8b5cf6;
+ --bs-btn-active-border-color: #8b5cf6;
+ --bs-btn-active-color: #fff;
+}
+
/* Table styles */
#PlayerListController .table-responsive {
min-height: calc(100vh - 200px);