Giter Site home page Giter Site logo

carlosdiamon / coordinateoffset Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joshuaprince/coordinateoffset

0.0 0.0 0.0 1.37 MB

⛏️ A Minecraft Spigot/Paper plugin that configurably obfuscates players' coordinates.

License: GNU Affero General Public License v3.0

Shell 0.96% Java 99.04%

coordinateoffset's Introduction

CoordinateOffset

A Minecraft Spigot/Paper plugin that configurably obfuscates players' coordinates.

Icon

Spigot | Modrinth | Hangar | CurseForge | bStats

Minecraft offers a useful debug menu (F3) that allows anyone to easily see their coordinates in the world. This makes it easy to save points of interest and share locations with friends (or enemies).

However, not all multiplayer servers want coordinates to be so easily accessible. /gamerule reducedDebugInfo can administratively hide coordinates from the F3 menu, but it is trivial for a player to add a client-side mod that shows them.

CoordinateOffset is a plugin for Spigot and Paper servers that modifies every coordinate in packets between the server and client. The player still sees the exact same world they would normally see. But no matter which mods they install, they cannot see their real coordinates.

Features

  • Fully-configurable, flexible methods of determining how to apply offsets
  • Randomize offset when the player joins, dies, or changes world
  • Match offsets to the player's position, so they see themselves near the world's origin
  • Persist the same offset every time a player joins so that they don't notice coordinates changing
  • Configure different offsets per-player, per-world, and with permissions
  • Extensible API to flexibly get and set offsets
  • (Beta) Compatible with ViaVersion, ViaBackwards, BungeeCord, Waterfall, and Velocity

Requirements and Installation

After ensuring that you meet the requirements, just grab the latest release and drop it in your server's plugins folder.

Configuration

Main article: Configuration Guide

The main configuration file is automatically generated after the first run at plugins/CoordinateOffset/config.yml.

defaultOffsetProvider: random

The default configuration contains four predefined "offset providers". An "offset" refers to the amount that the player's coordinates should appear to be shifted from their real location. Get started by picking a strategy that matches the type of offsetting you're trying to achieve:

  • constant - Specify the exact offset you want players to have.
  • disabled - Players will see their real coordinates.
  • random - Individually randomize each player's offset every time they join the server.
  • zeroAtLocation - Use an offset based on the player's starting location, so they see themselves near (0, 0).

You can customize these providers further, use different providers for different players/worlds/groups, and define your own providers. See the complete Configuration Guide.

Commands

/offset [player]

Gets your or someone else's current offset and real coordinates.

/offsetreload

Reload the configuration from config.yml.

Permissions

  • coordinateoffset.bypass Players with this permission will never have their coordinates offsetted. It's a good idea to give this permission to anyone who needs to use coordinates for commands or administration.

  • coordinateoffset.query Allows you to use the /offset command, which tells you your current offset.

  • coordinateoffset.query.others Allows you to query other players' offsets with /offset <name>.

  • coordinateoffset.reload Allows you to reload the plugin config with /offsetreload.

API

You can use or extend CoordinateOffset in your own plugin by using the API. Please see the API Guide.

Credits

Special thanks to Cavallium for developing CoordinatesObfuscator, which CoordinateOffset is a fork of. CoordinateOffset's packet translation logic was heavily modeled after the work done by CoordinatesObfuscator.

Libraries used:

coordinateoffset's People

Contributors

joshuaprince avatar cavallium avatar shaokeyibb avatar harvelsx avatar carlosdiamon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.