Morpheus

Share scripts you wrote for Denizen-Bukkit here!
Post Reply
jumpsplat120
New
New
Posts: 8
Joined: June 24th, 2020, 6:05 pm

Morpheus

Post by jumpsplat120 » July 5th, 2020, 4:00 pm

Tired of trying to get everyone on your server to sleep at the same time? Looking for a plugin form of the popular mod Morpheus? May I introduce to you...
MORPHEUS



Simply drop in the file, and BLAMMO! Only a percentage of players are required to be sleeping at any given time to pass the night. Want to change the percentage? With the handy dandy sectioned off config near the top, you can change the percentage of required players as well as the wake message!

Here's a quick video demonstration of the script in action...



The code is only a few lines long, so feel free to modify it with extra features to suit your own needs! If you are using this script in any capacity, I would love to hear about it! Feel free to shoot me a message on Discord, Jumpsplat120#0001.

Simply click https://one.denizenscript.com/haste/71999, or view the github for a more expanded look at the code: https://github.com/jumpsplat120/Denizen ... rpheus.dsc

EDIT: Updated script to follow better scripting practices.
Last edited by jumpsplat120 on July 6th, 2020, 1:33 pm, edited 1 time in total.

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 289
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: Morpheus

Post by mcmonkey » July 6th, 2020, 5:16 am

You have usages of "yaml data" and "yaml_key" - these were deprecated semi-recently. They should be "data" scripts and "data_key" for the tag.
Also, line 20 has misplaced quotes.

All of these problems were found by just running a bot check:
Image
Denizen lead developer. On Discord as mcmonkey#6666.

jumpsplat120
New
New
Posts: 8
Joined: June 24th, 2020, 6:05 pm

Re: Morpheus

Post by jumpsplat120 » July 6th, 2020, 1:34 pm

Thanks monkey. I need to get in the habit of using the bot more often.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests