Jump to content
View in the app

A better way to browse. Learn more.

RuneSuite RSPS Development

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted
comment_13270

Ticket system where a player requests a ticket, a message would then be sent to the staff online and could then be accepted.

package com.elvarg.game.content.ticket;

import com.elvarg.game.World;
import com.elvarg.game.entity.impl.player.Player;
import com.elvarg.util.Misc;

import java.util.*;
import java.util.stream.Collectors;

public class TicketManager {

    private final Queue entries = new ArrayDeque<>();

    public static final TicketManager INSTANCE = new TicketManager();

    public void acceptRequest(Player staff) {
        if (entries.peek() == null) {
            staff.getPacketSender().sendMessage("No tickets have been requested.");
            return;
        }

        TicketEntry entry = entries.peek();
        entries.poll();
        Player player = entry.getRequester();

        player.getPacketSender().sendMessage(staff.getUsername() + " has accepted your ticket");
        staff.getPacketSender().sendMessage("Teleporting to " + player.getUsername());
        staff.moveTo(player.getPosition().copy());
        staff.forceChat("How may I help you " + Misc.capitalize(player.getUsername()) + "?");
    }
package com.elvarg.game.content.ticket;

import com.elvarg.game.entity.impl.player.Player;

public final class TicketEntry {

    private final Player requester;

    public TicketEntry(Player requester) {
        this.requester = requester;
    }

    public Player getRequester() {
        return requester;
    }
}

Add this OwnerCommands

if (parts[0].startsWith("acceptticket")) {
			TicketManager.INSTANCE.acceptRequest(player);
}

Add this under PlayerCommands

if (parts[0].startsWith("request")) {
			TicketManager.INSTANCE.requestTicket(player);
}
  • 1 year later...
  • 3 years later...
  • 1 year later...

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.