{"action":"created","comment":{"url":"https://api.github.com/repos/SkriptLang/Skript/pulls/comments/223215892","pull_request_review_id":162292553,"id":223215892,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzIxNTg5Mg==","diff_hunk":"@@ -0,0 +1,96 @@\n+/**\n+ *   This file is part of Skript.\n+ *\n+ *  Skript is free software: you can redistribute it and/or modify\n+ *  it under the terms of the GNU General Public License as published by\n+ *  the Free Software Foundation, either version 3 of the License, or\n+ *  (at your option) any later version.\n+ *\n+ *  Skript is distributed in the hope that it will be useful,\n+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ *  GNU General Public License for more details.\n+ *\n+ *  You should have received a copy of the GNU General Public License\n+ *  along with Skript.  If not, see <http://www.gnu.org/licenses/>.\n+ *\n+ *\n+ * Copyright 2011-2017 Peter Güttinger and contributors\n+ */\n+package ch.njol.skript.effects;\n+\n+import java.io.File;\n+\n+import ch.njol.skript.ScriptLoader;\n+import ch.njol.skript.Skript;\n+import ch.njol.skript.config.Config;\n+import ch.njol.skript.doc.Description;\n+import ch.njol.skript.doc.Examples;\n+import ch.njol.skript.doc.Name;\n+import ch.njol.skript.doc.Since;\n+import ch.njol.skript.lang.Effect;\n+import ch.njol.skript.lang.Expression;\n+import ch.njol.skript.lang.SkriptParser;\n+import ch.njol.skript.util.ScriptOptions;\n+import ch.njol.util.Kleenean;\n+import org.bukkit.event.Event;\n+import org.eclipse.jdt.annotation.Nullable;\n+\n+@Name(\"Locally Suppress Warning\")\n+@Description(\"Suppresses target warnings from the current script.\")\n+@Examples({\"locally suppress conflict warnings\",\n+\t\t\t\"suppress variable save warnings\"})\n+@Since(\"INSERT VERSION\")\n+public class EffSuppressWarnings extends Effect {\n+\tstatic {\n+\t\tSkript.registerEffect(EffSuppressWarnings.class, \"[local[ly]] suppress (1¦conflict|2¦variable save|3¦[missing] conjunction[s]|4¦starting [with] expression[s]) warning[s]\");\n+\t}\n+\t\n+\tprivate int CONFLICT = 1, INSTANCE = 2, CONJUNCTION = 3, STARTEXPR = 4;\n+\tprivate int mark = 0;\n+\n+\t@Override\n+\tpublic boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, SkriptParser.ParseResult parseResult) {\n+\t\tConfig cs = ScriptLoader.currentScript;\n+\t\tif (cs == null) {\n+\t\t\tSkript.error(\"Current script is null!\");","path":"src/main/java/ch/njol/skript/effects/EffSuppressWarnings.java","position":56,"original_position":56,"commit_id":"4f2da6990f73f110a8cf1fc3d75df932e813d73c","original_commit_id":"4f2da6990f73f110a8cf1fc3d75df932e813d73c","user":{"login":"Nicofisi","id":12614053,"node_id":"MDQ6VXNlcjEyNjE0MDUz","avatar_url":"https://avatars3.githubusercontent.com/u/12614053?v=4","gravatar_id":"","url":"https://api.github.com/users/Nicofisi","html_url":"https://github.com/Nicofisi","followers_url":"https://api.github.com/users/Nicofisi/followers","following_url":"https://api.github.com/users/Nicofisi/following{/other_user}","gists_url":"https://api.github.com/users/Nicofisi/gists{/gist_id}","starred_url":"https://api.github.com/users/Nicofisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nicofisi/subscriptions","organizations_url":"https://api.github.com/users/Nicofisi/orgs","repos_url":"https://api.github.com/users/Nicofisi/repos","events_url":"https://api.github.com/users/Nicofisi/events{/privacy}","received_events_url":"https://api.github.com/users/Nicofisi/received_events","type":"User","site_admin":false},"body":"Shouldn't it just be `assert cs != null;` here too? Or does a legit situation exist when this can be null","created_at":"2018-10-07T14:38:11Z","updated_at":"2018-10-07T14:38:11Z","html_url":"https://github.com/SkriptLang/Skript/pull/1585#discussion_r223215892","pull_request_url":"https://api.github.com/repos/SkriptLang/Skript/pulls/1585","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/SkriptLang/Skript/pulls/comments/223215892"},"html":{"href":"https://github.com/SkriptLang/Skript/pull/1585#discussion_r223215892"},"pull_request":{"href":"https://api.github.com/repos/SkriptLang/Skript/pulls/1585"}},"in_reply_to_id":223215537},"pull_request":{"url":"https://api.github.com/repos/SkriptLang/Skript/pulls/1585","id":220924733,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwOTI0NzMz","html_url":"https://github.com/SkriptLang/Skript/pull/1585","diff_url":"https://github.com/SkriptLang/Skript/pull/1585.diff","patch_url":"https://github.com/SkriptLang/Skript/pull/1585.patch","issue_url":"https://api.github.com/repos/SkriptLang/Skript/issues/1585","number":1585,"state":"open","locked":false,"title":"Add Warning Suppressing Effect","user":{"login":"JRoy","id":10731363,"node_id":"MDQ6VXNlcjEwNzMxMzYz","avatar_url":"https://avatars1.githubusercontent.com/u/10731363?v=4","gravatar_id":"","url":"https://api.github.com/users/JRoy","html_url":"https://github.com/JRoy","followers_url":"https://api.github.com/users/JRoy/followers","following_url":"https://api.github.com/users/JRoy/following{/other_user}","gists_url":"https://api.github.com/users/JRoy/gists{/gist_id}","starred_url":"https://api.github.com/users/JRoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JRoy/subscriptions","organizations_url":"https://api.github.com/users/JRoy/orgs","repos_url":"https://api.github.com/users/JRoy/repos","events_url":"https://api.github.com/users/JRoy/events{/privacy}","received_events_url":"https://api.github.com/users/JRoy/received_events","type":"User","site_admin":false},"body":"Target Minecraft versions: *Any*\r\nRequirements: *N/A*\r\nRelated issues: #1260 \r\n\r\nDescription:\r\nThis pull request adds script-specific warning suppression for the following warnings:\r\n* Variable Conflict\r\n* Variable will not be saved\r\n* List missing conjunctions\r\n* Starting Variable with expression\r\n\r\nThis is accomplished through EffSuppressWarnings:\r\n`[local[ly]] suppress (1¦conflict|2¦variable save|3¦[missing] conjunction[s]|4¦starting [with] expression[s]) warning[s]`\r\n\r\nThis effect uses the ScriptOptions class to manage what scripts are suppressing what errors.\r\n","created_at":"2018-10-07T03:30:11Z","updated_at":"2018-10-07T14:38:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34158424e8e838ef18e477aab811482d675961cc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SkriptLang/Skript/pulls/1585/commits","review_comments_url":"https://api.github.com/repos/SkriptLang/Skript/pulls/1585/comments","review_comment_url":"https://api.github.com/repos/SkriptLang/Skript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SkriptLang/Skript/issues/1585/comments","statuses_url":"https://api.github.com/repos/SkriptLang/Skript/statuses/4f2da6990f73f110a8cf1fc3d75df932e813d73c","head":{"label":"WheezyGold7931:master","ref":"master","sha":"4f2da6990f73f110a8cf1fc3d75df932e813d73c","user":{"login":"WheezyGold7931","id":37487462,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NDg3NDYy","avatar_url":"https://avatars2.githubusercontent.com/u/37487462?v=4","gravatar_id":"","url":"https://api.github.com/users/WheezyGold7931","html_url":"https://github.com/WheezyGold7931","followers_url":"https://api.github.com/users/WheezyGold7931/followers","following_url":"https://api.github.com/users/WheezyGold7931/following{/other_user}","gists_url":"https://api.github.com/users/WheezyGold7931/gists{/gist_id}","starred_url":"https://api.github.com/users/WheezyGold7931/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WheezyGold7931/subscriptions","organizations_url":"https://api.github.com/users/WheezyGold7931/orgs","repos_url":"https://api.github.com/users/WheezyGold7931/repos","events_url":"https://api.github.com/users/WheezyGold7931/events{/privacy}","received_events_url":"https://api.github.com/users/WheezyGold7931/received_events","type":"Organization","site_admin":false},"repo":{"id":151902513,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE5MDI1MTM=","name":"Skript","full_name":"WheezyGold7931/Skript","private":false,"owner":{"login":"WheezyGold7931","id":37487462,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NDg3NDYy","avatar_url":"https://avatars2.githubusercontent.com/u/37487462?v=4","gravatar_id":"","url":"https://api.github.com/users/WheezyGold7931","html_url":"https://github.com/WheezyGold7931","followers_url":"https://api.github.com/users/WheezyGold7931/followers","following_url":"https://api.github.com/users/WheezyGold7931/following{/other_user}","gists_url":"https://api.github.com/users/WheezyGold7931/gists{/gist_id}","starred_url":"https://api.github.com/users/WheezyGold7931/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WheezyGold7931/subscriptions","organizations_url":"https://api.github.com/users/WheezyGold7931/orgs","repos_url":"https://api.github.com/users/WheezyGold7931/repos","events_url":"https://api.github.com/users/WheezyGold7931/events{/privacy}","received_events_url":"https://api.github.com/users/WheezyGold7931/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/WheezyGold7931/Skript","description":"Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.","fork":true,"url":"https://api.github.com/repos/WheezyGold7931/Skript","forks_url":"https://api.github.com/repos/WheezyGold7931/Skript/forks","keys_url":"https://api.github.com/repos/WheezyGold7931/Skript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WheezyGold7931/Skript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WheezyGold7931/Skript/teams","hooks_url":"https://api.github.com/repos/WheezyGold7931/Skript/hooks","issue_events_url":"https://api.github.com/repos/WheezyGold7931/Skript/issues/events{/number}","events_url":"https://api.github.com/repos/WheezyGold7931/Skript/events","assignees_url":"https://api.github.com/repos/WheezyGold7931/Skript/assignees{/user}","branches_url":"https://api.github.com/repos/WheezyGold7931/Skript/branches{/branch}","tags_url":"https://api.github.com/repos/WheezyGold7931/Skript/tags","blobs_url":"https://api.github.com/repos/WheezyGold7931/Skript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WheezyGold7931/Skript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WheezyGold7931/Skript/git/refs{/sha}","trees_url":"https://api.github.com/repos/WheezyGold7931/Skript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WheezyGold7931/Skript/statuses/{sha}","languages_url":"https://api.github.com/repos/WheezyGold7931/Skript/languages","stargazers_url":"https://api.github.com/repos/WheezyGold7931/Skript/stargazers","contributors_url":"https://api.github.com/repos/WheezyGold7931/Skript/contributors","subscribers_url":"https://api.github.com/repos/WheezyGold7931/Skript/subscribers","subscription_url":"https://api.github.com/repos/WheezyGold7931/Skript/subscription","commits_url":"https://api.github.com/repos/WheezyGold7931/Skript/commits{/sha}","git_commits_url":"https://api.github.com/repos/WheezyGold7931/Skript/git/commits{/sha}","comments_url":"https://api.github.com/repos/WheezyGold7931/Skript/comments{/number}","issue_comment_url":"https://api.github.com/repos/WheezyGold7931/Skript/issues/comments{/number}","contents_url":"https://api.github.com/repos/WheezyGold7931/Skript/contents/{+path}","compare_url":"https://api.github.com/repos/WheezyGold7931/Skript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WheezyGold7931/Skript/merges","archive_url":"https://api.github.com/repos/WheezyGold7931/Skript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WheezyGold7931/Skript/downloads","issues_url":"https://api.github.com/repos/WheezyGold7931/Skript/issues{/number}","pulls_url":"https://api.github.com/repos/WheezyGold7931/Skript/pulls{/number}","milestones_url":"https://api.github.com/repos/WheezyGold7931/Skript/milestones{/number}","notifications_url":"https://api.github.com/repos/WheezyGold7931/Skript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WheezyGold7931/Skript/labels{/name}","releases_url":"https://api.github.com/repos/WheezyGold7931/Skript/releases{/id}","deployments_url":"https://api.github.com/repos/WheezyGold7931/Skript/deployments","created_at":"2018-10-07T03:24:40Z","updated_at":"2018-10-07T03:33:55Z","pushed_at":"2018-10-07T03:33:53Z","git_url":"git://github.com/WheezyGold7931/Skript.git","ssh_url":"git@github.com:WheezyGold7931/Skript.git","clone_url":"https://github.com/WheezyGold7931/Skript.git","svn_url":"https://github.com/WheezyGold7931/Skript","homepage":"","size":13658,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SkriptLang:master","ref":"master","sha":"78d1f6d2383a7e1f59536ef711ceb9ada1fce2a7","user":{"login":"SkriptLang","id":39464898,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NDY0ODk4","avatar_url":"https://avatars1.githubusercontent.com/u/39464898?v=4","gravatar_id":"","url":"https://api.github.com/users/SkriptLang","html_url":"https://github.com/SkriptLang","followers_url":"https://api.github.com/users/SkriptLang/followers","following_url":"https://api.github.com/users/SkriptLang/following{/other_user}","gists_url":"https://api.github.com/users/SkriptLang/gists{/gist_id}","starred_url":"https://api.github.com/users/SkriptLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SkriptLang/subscriptions","organizations_url":"https://api.github.com/users/SkriptLang/orgs","repos_url":"https://api.github.com/users/SkriptLang/repos","events_url":"https://api.github.com/users/SkriptLang/events{/privacy}","received_events_url":"https://api.github.com/users/SkriptLang/received_events","type":"Organization","site_admin":false},"repo":{"id":53415151,"node_id":"MDEwOlJlcG9zaXRvcnk1MzQxNTE1MQ==","name":"Skript","full_name":"SkriptLang/Skript","private":false,"owner":{"login":"SkriptLang","id":39464898,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NDY0ODk4","avatar_url":"https://avatars1.githubusercontent.com/u/39464898?v=4","gravatar_id":"","url":"https://api.github.com/users/SkriptLang","html_url":"https://github.com/SkriptLang","followers_url":"https://api.github.com/users/SkriptLang/followers","following_url":"https://api.github.com/users/SkriptLang/following{/other_user}","gists_url":"https://api.github.com/users/SkriptLang/gists{/gist_id}","starred_url":"https://api.github.com/users/SkriptLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SkriptLang/subscriptions","organizations_url":"https://api.github.com/users/SkriptLang/orgs","repos_url":"https://api.github.com/users/SkriptLang/repos","events_url":"https://api.github.com/users/SkriptLang/events{/privacy}","received_events_url":"https://api.github.com/users/SkriptLang/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SkriptLang/Skript","description":"Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.","fork":false,"url":"https://api.github.com/repos/SkriptLang/Skript","forks_url":"https://api.github.com/repos/SkriptLang/Skript/forks","keys_url":"https://api.github.com/repos/SkriptLang/Skript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SkriptLang/Skript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SkriptLang/Skript/teams","hooks_url":"https://api.github.com/repos/SkriptLang/Skript/hooks","issue_events_url":"https://api.github.com/repos/SkriptLang/Skript/issues/events{/number}","events_url":"https://api.github.com/repos/SkriptLang/Skript/events","assignees_url":"https://api.github.com/repos/SkriptLang/Skript/assignees{/user}","branches_url":"https://api.github.com/repos/SkriptLang/Skript/branches{/branch}","tags_url":"https://api.github.com/repos/SkriptLang/Skript/tags","blobs_url":"https://api.github.com/repos/SkriptLang/Skript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SkriptLang/Skript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SkriptLang/Skript/git/refs{/sha}","trees_url":"https://api.github.com/repos/SkriptLang/Skript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SkriptLang/Skript/statuses/{sha}","languages_url":"https://api.github.com/repos/SkriptLang/Skript/languages","stargazers_url":"https://api.github.com/repos/SkriptLang/Skript/stargazers","contributors_url":"https://api.github.com/repos/SkriptLang/Skript/contributors","subscribers_url":"https://api.github.com/repos/SkriptLang/Skript/subscribers","subscription_url":"https://api.github.com/repos/SkriptLang/Skript/subscription","commits_url":"https://api.github.com/repos/SkriptLang/Skript/commits{/sha}","git_commits_url":"https://api.github.com/repos/SkriptLang/Skript/git/commits{/sha}","comments_url":"https://api.github.com/repos/SkriptLang/Skript/comments{/number}","issue_comment_url":"https://api.github.com/repos/SkriptLang/Skript/issues/comments{/number}","contents_url":"https://api.github.com/repos/SkriptLang/Skript/contents/{+path}","compare_url":"https://api.github.com/repos/SkriptLang/Skript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SkriptLang/Skript/merges","archive_url":"https://api.github.com/repos/SkriptLang/Skript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SkriptLang/Skript/downloads","issues_url":"https://api.github.com/repos/SkriptLang/Skript/issues{/number}","pulls_url":"https://api.github.com/repos/SkriptLang/Skript/pulls{/number}","milestones_url":"https://api.github.com/repos/SkriptLang/Skript/milestones{/number}","notifications_url":"https://api.github.com/repos/SkriptLang/Skript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SkriptLang/Skript/labels{/name}","releases_url":"https://api.github.com/repos/SkriptLang/Skript/releases{/id}","deployments_url":"https://api.github.com/repos/SkriptLang/Skript/deployments","created_at":"2016-03-08T13:42:04Z","updated_at":"2018-10-06T19:13:42Z","pushed_at":"2018-10-07T03:33:55Z","git_url":"git://github.com/SkriptLang/Skript.git","ssh_url":"git@github.com:SkriptLang/Skript.git","clone_url":"https://github.com/SkriptLang/Skript.git","svn_url":"https://github.com/SkriptLang/Skript","homepage":"","size":13631,"stargazers_count":204,"watchers_count":204,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":92,"mirror_url":null,"archived":false,"open_issues_count":249,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":92,"open_issues":249,"watchers":204,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SkriptLang/Skript/pulls/1585"},"html":{"href":"https://github.com/SkriptLang/Skript/pull/1585"},"issue":{"href":"https://api.github.com/repos/SkriptLang/Skript/issues/1585"},"comments":{"href":"https://api.github.com/repos/SkriptLang/Skript/issues/1585/comments"},"review_comments":{"href":"https://api.github.com/repos/SkriptLang/Skript/pulls/1585/comments"},"review_comment":{"href":"https://api.github.com/repos/SkriptLang/Skript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SkriptLang/Skript/pulls/1585/commits"},"statuses":{"href":"https://api.github.com/repos/SkriptLang/Skript/statuses/4f2da6990f73f110a8cf1fc3d75df932e813d73c"}},"author_association":"NONE"}}
{"actor":{"display_login":"Nicofisi"}}