npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@scriptserver/essentials

v2.0.4

Published

Provides things like warps, homes, kits, MOTD, etc.

Downloads

10

Readme

@scriptserver/essentials

FYI: This package is an addon for ScriptServer and requires ScriptServer to be set up, please see here for more information.

useEssentials(scriptServer: ScriptServer)

import { ScriptServer, ScriptServer } from '@scriptserver/core';
import { useEssentials } from '@scriptserver/essentials';

const scriptServer = new ScriptServer({
  essentials: {
    warp: {
      opOnly: true,
    },
  },
});

useEssentials(scriptServer);

Commands

  • ~sethome [name] Set a home (optionally with a name, if multiple homes are enabled) in your current dimension

  • ~delhome [name] Remove a home (optionally with a name, if multiple homes are enabled) in your current dimension (Useful for limited amount of homes)

  • ~home [name] Teleport to a home (optionally with a name, if multiple homes are enabled) in your current dimension

  • ~setspawn Set the spawn in your current dimension (requires OP)

  • ~spawn Teleport to spawn in your current dimension

  • ~setwarp <name> Set a warp point specified by name in current dimension (Optionally requires OP)

  • ~delwarp <name> Remove the specified warp in current dimension (Optionally requires OP)

  • ~warp <name> Teleport to warp's location

  • ~tpa <username> Sends a teleport request to the specified user

  • ~tpahere <username> Sends a teleport here request to the specifed user

  • ~tpaccept Accept your current teleport request.

  • ~tpdeny Deny your current teleport request.

  • ~back Teleport back to a previous location (Remembers location from spawn, tpa, warp, and home)

  • ~day Start a vote for setting the time to day.

  • ~night Start a vote for setting the time to night.

  • ~weather Start a vote for toggling downfall.

Interface: Config

These configuration options are here to override as needed for flavors, if you are having trouble getting the events to emit in your given flavor of server, try overriding these.

  • config: Config
    • essentials
      • motd
        • enabled: boolean (Default: true)
        • firstTime: string (Default: Welcome to the server, ${player}!)
        • text: string (Default: Welcome back ${player}!)
      • starterKit
        • enabled: boolean (Default: true)
        • items: string[] (Default: ['iron_pickaxe', 'iron_shovel', 'iron_axe', 'iron_sword', 'red_bed', 'bread 32'])
      • home
        • enabled: boolean (Default: true)
        • amount: number (Default: 3)
      • spawn: boolean (Default: true)
      • warp
        • enabled: boolean (Default: true)
        • opOnly: boolean (Default: true)
      • tpa: boolean (Default: true)
      • back: boolean (Default: true)
      • day
        • enabled: boolean (Default: true)
        • percent: number (Default: 50)
      • night
        • enabled: boolean (Default: true)
        • percent: number (Default: 50)
      • weather
        • enabled: boolean (Default: true)
        • percent: number (Default: 50)